This commit is contained in:
root
2019-11-28 20:40:02 +00:00
commit 1c78566f5b
2275 changed files with 272351 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
/// <reference types="node" />
import { IncomingMessage, ServerResponse } from 'http';
declare const _default: () => (_req: IncomingMessage, res: ServerResponse, next: () => void) => void;
export = _default;
+10
View File
@@ -0,0 +1,10 @@
"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();
};
};