You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
340 B
14 lines
340 B
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();
|
|
};
|
|
};
|