mirror of https://github.com/Nofated095/blog
update config
This commit is contained in:
parent
78922a8286
commit
fc8b87081c
|
@ -263,7 +263,7 @@ widgets:
|
||||||
# https://ppoffice.github.io/hexo-theme-icarus/categories/Plugins/
|
# https://ppoffice.github.io/hexo-theme-icarus/categories/Plugins/
|
||||||
plugins:
|
plugins:
|
||||||
# Enable page startup animations
|
# Enable page startup animations
|
||||||
animejs: false
|
animejs: true
|
||||||
# Show the "back to top" button
|
# Show the "back to top" button
|
||||||
back_to_top: true
|
back_to_top: true
|
||||||
# Baidu Analytics plugin settings
|
# Baidu Analytics plugin settings
|
||||||
|
@ -278,7 +278,7 @@ plugins:
|
||||||
tracking_id: 18E1B8B1375D6D1603970E5998BE1077
|
tracking_id: 18E1B8B1375D6D1603970E5998BE1077
|
||||||
# BuSuanZi site/page view counter
|
# BuSuanZi site/page view counter
|
||||||
# https://busuanzi.ibruce.info
|
# https://busuanzi.ibruce.info
|
||||||
busuanzi: true
|
busuanzi: false
|
||||||
# CNZZ statistics
|
# CNZZ statistics
|
||||||
# https://www.umeng.com/web
|
# https://www.umeng.com/web
|
||||||
cnzz:
|
cnzz:
|
||||||
|
@ -308,7 +308,7 @@ plugins:
|
||||||
# http://outdatedbrowser.com/
|
# http://outdatedbrowser.com/
|
||||||
outdated_browser: false
|
outdated_browser: false
|
||||||
# Show a progress bar at top of the page on page loading
|
# Show a progress bar at top of the page on page loading
|
||||||
progressbar: false
|
progressbar: true
|
||||||
# Statcounter statistics
|
# Statcounter statistics
|
||||||
# https://statcounter.com/
|
# https://statcounter.com/
|
||||||
statcounter:
|
statcounter:
|
||||||
|
|
19
source/sw.js
19
source/sw.js
|
@ -53,23 +53,6 @@ routing.registerRoute(
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
routing.registerRoute(
|
|
||||||
/.*blog\.nofated\.win/,
|
|
||||||
new CacheFirst({
|
|
||||||
cacheName: 'static-immutable' + cacheSuffixVersion,
|
|
||||||
fetchOptions: {
|
|
||||||
mode: 'cors',
|
|
||||||
credentials: 'omit'
|
|
||||||
},
|
|
||||||
plugins: [
|
|
||||||
new ExpirationPlugin({
|
|
||||||
maxAgeSeconds: 30 * 24 * 60 * 60,
|
|
||||||
purgeOnQuotaError: true
|
|
||||||
})
|
|
||||||
]
|
|
||||||
})
|
|
||||||
);
|
|
||||||
|
|
||||||
routing.registerRoute(
|
routing.registerRoute(
|
||||||
/.*xgjalbum\.oss-cn-hangzhou\.aliyuncs\.com/,
|
/.*xgjalbum\.oss-cn-hangzhou\.aliyuncs\.com/,
|
||||||
new CacheFirst({
|
new CacheFirst({
|
||||||
|
@ -254,7 +237,7 @@ routing.registerRoute(
|
||||||
* staleWhileRevalidate
|
* staleWhileRevalidate
|
||||||
*/
|
*/
|
||||||
routing.registerRoute(
|
routing.registerRoute(
|
||||||
'/js/sw.js',
|
'/sw.js',
|
||||||
StaleWhileRevalidateInstance
|
StaleWhileRevalidateInstance
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue