mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-22 23:35:31 +00:00
cdn: actually execute controllers
This commit is contained in:
@@ -21,4 +21,5 @@ import { NextFunction, Response, Request } from "express";
|
||||
export function cache(req: Request, res: Response, next: NextFunction) {
|
||||
const cacheDuration = 21600; // 6 hours
|
||||
res.setHeader("Cache-Control", `public, max-age=${cacheDuration}, s-maxage=${cacheDuration}, immutable`);
|
||||
next();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user