mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 11:18:36 +00:00
✨ Adapt docker images nginx config template to latest changes (#7891)
This commit is contained in:
parent
9f6899007a
commit
496d37795b
@ -142,13 +142,6 @@ http {
|
|||||||
location / {
|
location / {
|
||||||
include /etc/nginx/overrides/location.d/*.conf;
|
include /etc/nginx/overrides/location.d/*.conf;
|
||||||
|
|
||||||
location ~ ^/js/config.js$ {
|
|
||||||
add_header Cache-Control "no-store, no-cache, max-age=0" always;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~* \.(js|css|jpg|svg|png|mjs|map)$ {
|
|
||||||
add_header Cache-Control "max-age=604800" always; # 7 days
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/(/|css|fonts|images|js|wasm|mjs|map) {
|
location ~ ^/(/|css|fonts|images|js|wasm|mjs|map) {
|
||||||
}
|
}
|
||||||
@ -157,9 +150,7 @@ http {
|
|||||||
return 301 " /404";
|
return 301 " /404";
|
||||||
}
|
}
|
||||||
|
|
||||||
add_header Last-Modified $date_gmt;
|
add_header Cache-Control "public, must-revalidate, max-age=0";
|
||||||
add_header Cache-Control "no-store, no-cache, max-age=0" always;
|
|
||||||
if_modified_since off;
|
|
||||||
try_files $uri /index.html$is_args$args /index.html =404;
|
try_files $uri /index.html$is_args$args /index.html =404;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user