1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2024-12-29 15:11:58 +00:00

fix(server): cache-control header missing from / requests (#10131)

* fix(server): cache-control header missing from / requests

* disable extension fallback
This commit is contained in:
Michel Heusschen 2024-06-11 17:18:52 +02:00 committed by GitHub
parent 34fc572276
commit 3a3676bc82
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -46,6 +46,7 @@ async function bootstrap() {
etag: true,
gzip: true,
brotli: true,
extensions: [],
setHeaders: (res, pathname) => {
if (pathname.startsWith(`/_app/immutable`) && res.statusCode === 200) {
res.setHeader('cache-control', 'public,max-age=31536000,immutable');