File tree Expand file tree Collapse file tree 2 files changed +3
-20
lines changed
Expand file tree Collapse file tree 2 files changed +3
-20
lines changed Original file line number Diff line number Diff line change @@ -7,13 +7,7 @@ server {
77
88 root /usr/share/nginx/html;
99 index index.html index.html;
10-
11- location ~* ^/(images|symbols|ogv)(/.*)*\.(svg|png|jpe?g|gif|webp|ico|js|css|woff2?)$ {
12- add_header Cache-Control "public, max-age=31536000, immutable" always;
13- access_log off;
14- log_not_found off;
15- }
16-
10+
1711 try_files $uri $uri/ /index.html;
1812
1913 set $auth_basic off;
Original file line number Diff line number Diff line change @@ -29,21 +29,11 @@ module.exports = {
2929 staticFileGlobs : [
3030 'build/*.html' ,
3131 'build/manifest.json' ,
32- 'build/static/**/*.* ' ,
32+ 'build/static/**/!(*map*) ' ,
3333 ...boardImages
3434 ] ,
3535 maximumFileSizeToCacheInBytes : 4194304 ,
3636 runtimeCaching : [
37- {
38- urlPattern : / \/ s t a t i c \/ / ,
39- handler : 'cacheFirst' ,
40- options : {
41- cache : {
42- name : 'static-assets' ,
43- maxEntries : 200
44- }
45- }
46- } ,
4737 {
4838 urlPattern : / \/ s y m b o l s \/ m u l b e r r y / ,
4939 handler : 'cacheFirst' ,
@@ -72,11 +62,10 @@ module.exports = {
7262 }
7363 }
7464 ] ,
75- navigateFallback : '/index.html' ,
76- navigateFallbackWhitelist : [ / ^ \/ (? ! a p i ) .* / ] ,
7765 dontCacheBustUrlsMatching : / \. \w { 8 } \. / ,
7866 dynamicUrlToDependencies : {
7967 '/' : [ 'build/index.html' ]
8068 } ,
69+ navigateFallback : '/' ,
8170 swFilePath : 'build/service-worker.js'
8271} ;
You can’t perform that action at this time.
0 commit comments