From afa0a337d30326561c1cef185f0a8eb3a0bf7924 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 23 Jan 2025 14:59:29 -0600 Subject: [PATCH] Add a default cache-control header of no-store --- src/app.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app.ts b/src/app.ts index 24d9afe8..7b4316a3 100644 --- a/src/app.ts +++ b/src/app.ts @@ -177,6 +177,7 @@ const publicFiles = serveStatic({ root: './public/' }); /** Static files provided by the Ditto repo, checked into git. */ const staticFiles = serveStatic({ root: './static/' }); +app.use('*', cacheControlMiddleware({ noStore: true })); app.use('*', rateLimitMiddleware(300, Time.minutes(5))); app.use('/api/*', metricsMiddleware, paginationMiddleware, logger(debug));