summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-01-23 12:00:34 +0100
committerRory& <root@rory.gay>2026-01-23 12:00:34 +0100
commite52f4c3cd06ef9045870ae24340912f44e9d141a (patch)
treeaadbdb2405b122e9648f009c80e2d86d7dee516e
parentIdentify: add self as recipient for DMs with nonexistnt users (diff)
downloadserver-ts-e52f4c3cd06ef9045870ae24340912f44e9d141a.tar.xz
cdn: actually execute controllers
-rw-r--r--src/cdn/util/cache.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cdn/util/cache.ts b/src/cdn/util/cache.ts

index 3c3ea8fb..a36f2c4c 100644 --- a/src/cdn/util/cache.ts +++ b/src/cdn/util/cache.ts
@@ -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(); }