Lots of technical improvements
This commit is contained in:
1 parent
102cdfcb52
commit
a26443af8f
26 files changed
+1864
-430
No files matched your search
+24
@@ -11,6 +11,30 @@ server {
|
||||
try_files $uri =404;
|
||||
}
|
||||
|
||||
# Service worker control files must never be cached hard, otherwise the
|
||||
# PWA can no longer pick up new deployments. Exact matches win over the
|
||||
# generic *.js rule below.
|
||||
location = /ngsw-worker.js {
|
||||
add_header Cache-Control "no-cache, max-age=0, must-revalidate";
|
||||
try_files $uri =404;
|
||||
}
|
||||
location = /ngsw.json {
|
||||
add_header Cache-Control "no-cache, max-age=0, must-revalidate";
|
||||
try_files $uri =404;
|
||||
}
|
||||
location = /safety-worker.js {
|
||||
add_header Cache-Control "no-cache, max-age=0, must-revalidate";
|
||||
try_files $uri =404;
|
||||
}
|
||||
location = /worker-basic.min.js {
|
||||
add_header Cache-Control "no-cache, max-age=0, must-revalidate";
|
||||
try_files $uri =404;
|
||||
}
|
||||
location = /manifest.webmanifest {
|
||||
add_header Cache-Control "no-cache, max-age=0, must-revalidate";
|
||||
try_files $uri =404;
|
||||
}
|
||||
|
||||
# Angular Bundles cache hard
|
||||
location ~* \.(?:js|css)$ {
|
||||
add_header Cache-Control "public, max-age=31536000, immutable";
|
||||
|
||||
Reference in new issue
Block a user