1
0
mirror of synced 2025-12-30 12:02:01 -05:00
Files
docs/middleware/set-fastly-cache-headers.js

9 lines
227 B
JavaScript

module.exports = (req, res, next) => {
// Disallow both Fastly AND the browser from caching HTML pages
res.set({
'surrogate-control': 'private, no-store',
'cache-control': 'private, no-store'
})
return next()
}