Fix web cache and service worker handoff
Build and deploy Flutter Web / build (push) Failing after 5m32s
Build and deploy Flutter Web / build (push) Failing after 5m32s
This commit is contained in:
@@ -84,6 +84,13 @@ server {
|
||||
try_files $uri =404;
|
||||
}
|
||||
|
||||
location = /main.dart.js {
|
||||
add_header Cache-Control "no-cache" always;
|
||||
add_header Pragma "no-cache" always;
|
||||
add_header Expires "0" always;
|
||||
try_files /main.dart.js =404;
|
||||
}
|
||||
|
||||
location ~* \.(js|mjs|wasm|json|png|jpg|jpeg|gif|webp|svg|ico|woff|woff2|ttf)$ {
|
||||
add_header Cache-Control "public, max-age=31536000, immutable" always;
|
||||
try_files $uri =404;
|
||||
|
||||
Reference in New Issue
Block a user