mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Remove accidental HSTS header from packs/ route
This commit is contained in:
parent
6d31949944
commit
aa1515e7e9
1 changed files with 1 additions and 2 deletions
|
|
@ -414,8 +414,7 @@ app.get('/instance/*', publicFiles);
|
|||
|
||||
// Packs contains immutable static files
|
||||
app.get('/packs/*', async (c, next) => {
|
||||
c.header('Cache-Control', 'public, max-age=31536000, immutable');
|
||||
c.header('Strict-Transport-Security', '"max-age=31536000" always');
|
||||
c.header('Cache-Control', 'max-age=31536000, public, immutable');
|
||||
await next();
|
||||
}, publicFiles);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue