Browse Source

Make sure "/no-cache" test endpoint is completely unstorable

Without explicitly setting no-store the response can still be stored in the cache it's just instantly stale
cache-clone-stream
Luke Childs 8 years ago
parent
commit
be4c431072
  1. 1
      test/cache.js

1
test/cache.js

@ -11,6 +11,7 @@ test.before('setup', async () => {
let noCacheIndex = 0;
s.on('/no-cache', (req, res) => {
noCacheIndex++;
res.setHeader('Cache-Control', 'public, no-cache, no-store');
res.end(noCacheIndex.toString());
});

Loading…
Cancel
Save