fix in reverse
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
map $uri $static_file {
|
||||||
|
~*\.(?:css|js|mjs|png|jpg|jpeg|gif|svg|ico|webp|woff2?)$ 1;
|
||||||
|
default 0;
|
||||||
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80 default_server;
|
listen 80 default_server;
|
||||||
server_name ${SERVER_NAME};
|
server_name ${SERVER_NAME};
|
||||||
@@ -38,12 +43,13 @@ server {
|
|||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://web:80/;
|
proxy_pass http://web:80/;
|
||||||
add_header Cache-Control "no-store, no-cache" always;
|
try_files $uri =404;
|
||||||
}
|
|
||||||
|
|
||||||
location ~* \.(?:css|js|mjs|png|jpg|jpeg|gif|svg|ico|webp|woff2?)$ {
|
if ($static_file) {
|
||||||
proxy_pass http://web:80/;
|
|
||||||
add_header Cache-Control "public, max-age=31536000, immutable" always;
|
add_header Cache-Control "public, max-age=31536000, immutable" always;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
add_header Cache-Control "no-store, no-cache" always;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user