mirror of
https://github.com/khairul169/code-share.git
synced 2026-10-24 11:53:58 +07:00
fix: typescript support fix, add some params to editor, etc
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { NextFunction, Request, Response } from "express";
|
||||
|
||||
export const nocache = (_req: Request, res: Response, next: NextFunction) => {
|
||||
res.setHeader("Surrogate-Control", "no-store");
|
||||
res.setHeader(
|
||||
"Cache-Control",
|
||||
"no-store, no-cache, must-revalidate, proxy-revalidate"
|
||||
);
|
||||
res.setHeader("Expires", "0");
|
||||
|
||||
next();
|
||||
};
|
||||
Reference in New Issue
Block a user