From fc8b87081ceed0fc601aeed456f2f661701e5bfe Mon Sep 17 00:00:00 2001 From: Nofated095 Date: Sun, 26 Nov 2023 12:30:58 +0800 Subject: [PATCH] update config --- _config.amane.yml | 6 +++--- source/sw.js | 19 +------------------ 2 files changed, 4 insertions(+), 21 deletions(-) diff --git a/_config.amane.yml b/_config.amane.yml index b00f7ea..e2d672c 100644 --- a/_config.amane.yml +++ b/_config.amane.yml @@ -263,7 +263,7 @@ widgets: # https://ppoffice.github.io/hexo-theme-icarus/categories/Plugins/ plugins: # Enable page startup animations - animejs: false + animejs: true # Show the "back to top" button back_to_top: true # Baidu Analytics plugin settings @@ -278,7 +278,7 @@ plugins: tracking_id: 18E1B8B1375D6D1603970E5998BE1077 # BuSuanZi site/page view counter # https://busuanzi.ibruce.info - busuanzi: true + busuanzi: false # CNZZ statistics # https://www.umeng.com/web cnzz: @@ -308,7 +308,7 @@ plugins: # http://outdatedbrowser.com/ outdated_browser: false # Show a progress bar at top of the page on page loading - progressbar: false + progressbar: true # Statcounter statistics # https://statcounter.com/ statcounter: diff --git a/source/sw.js b/source/sw.js index f3e44fd..51c15ab 100644 --- a/source/sw.js +++ b/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( /.*xgjalbum\.oss-cn-hangzhou\.aliyuncs\.com/, new CacheFirst({ @@ -254,7 +237,7 @@ routing.registerRoute( * staleWhileRevalidate */ routing.registerRoute( - '/js/sw.js', + '/sw.js', StaleWhileRevalidateInstance );