Files
hackathon-v-escape-4ff8b5a6…/frontend/node_modules/nocache/index.js
marianesaldana 80dbd947e5 Initial commit
2026-05-23 08:59:34 -06:00

14 lines
340 B
JavaScript

module.exports = function nocache() {
return function nocache(_, res, next) {
res.setHeader("Surrogate-Control", "no-store");
res.setHeader(
"Cache-Control",
"no-store, no-cache, must-revalidate, proxy-revalidate"
);
res.setHeader("Pragma", "no-cache");
res.setHeader("Expires", "0");
next();
};
};