Fixes access to the ngsw-worker files

parent 261539fe
......@@ -8,18 +8,18 @@ server {
gzip_static on;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html =404;
}
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html =404;
location ~ ^\/ngsw(-worker)?\.js(on)?.*$ {
add_header Last-Modified $date_gmt;
add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, mage-age=0';
if_modified_since off;
expires off;
etag off;
access_log off;
location ~ ^\/ngsw(-worker)?\.js(on)?.*$ {
add_header Last-Modified $date_gmt;
add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, mage-age=0';
if_modified_since off;
expires off;
etag off;
access_log off;
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment