From aa1515e7e9785a9d5b584209daa283c76f49b2a7 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 23 Jan 2025 13:00:11 -0600 Subject: [PATCH] Remove accidental HSTS header from packs/ route --- src/app.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app.ts b/src/app.ts index b18ba281..5b12b223 100644 --- a/src/app.ts +++ b/src/app.ts @@ -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);