9 lines
253 B
JavaScript
9 lines
253 B
JavaScript
export default function setFastlyCacheHeaders(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()
|
|
}
|