mirror of
https://github.com/immich-app/immich.git
synced 2025-05-31 20:25:32 -04: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:
parent
34fc572276
commit
3a3676bc82
@ -46,6 +46,7 @@ async function bootstrap() {
|
|||||||
etag: true,
|
etag: true,
|
||||||
gzip: true,
|
gzip: true,
|
||||||
brotli: true,
|
brotli: true,
|
||||||
|
extensions: [],
|
||||||
setHeaders: (res, pathname) => {
|
setHeaders: (res, pathname) => {
|
||||||
if (pathname.startsWith(`/_app/immutable`) && res.statusCode === 200) {
|
if (pathname.startsWith(`/_app/immutable`) && res.statusCode === 200) {
|
||||||
res.setHeader('cache-control', 'public,max-age=31536000,immutable');
|
res.setHeader('cache-control', 'public,max-age=31536000,immutable');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user