Files
familyARK/familyark/app/node_modules/nocache/dist/index.js
T
2019-11-28 20:40:02 +00:00

11 lines
362 B
JavaScript

"use strict";
module.exports = function nocache() {
return function nocache(_req, 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();
};
};