mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
Add a default cache-control header of no-store
This commit is contained in:
parent
cd2619dbf3
commit
afa0a337d3
1 changed files with 1 additions and 0 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue