Remove accidental HSTS header from packs/ route

This commit is contained in:
Alex Gleason 2025-01-23 13:00:11 -06:00
parent 6d31949944
commit aa1515e7e9
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -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);