Skip to content

Commit 3812152

Browse files
committed
Revert "Merge pull request #1797 from cboard-org/fix/1482-first-render-issue"
This reverts commit 49c96cc, reversing changes made to efcaad7.
1 parent 1753c04 commit 3812152

File tree

2 files changed

+3
-20
lines changed

2 files changed

+3
-20
lines changed

rootfs/etc/nginx/conf.d/default.conf

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff 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;

sw-precache-config.js

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff 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: /\/static\//,
39-
handler: 'cacheFirst',
40-
options: {
41-
cache: {
42-
name: 'static-assets',
43-
maxEntries: 200
44-
}
45-
}
46-
},
4737
{
4838
urlPattern: /\/symbols\/mulberry/,
4939
handler: 'cacheFirst',
@@ -72,11 +62,10 @@ module.exports = {
7262
}
7363
}
7464
],
75-
navigateFallback: '/index.html',
76-
navigateFallbackWhitelist: [/^\/(?!api).*/],
7765
dontCacheBustUrlsMatching: /\.\w{8}\./,
7866
dynamicUrlToDependencies: {
7967
'/': ['build/index.html']
8068
},
69+
navigateFallback: '/',
8170
swFilePath: 'build/service-worker.js'
8271
};

0 commit comments

Comments
 (0)