1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 05:41:31 +00:00

Added exclude list for PWA caching.

This commit is contained in:
Cotes Chung
2020-05-12 01:01:12 +08:00
parent d8e45694bd
commit 0f5c2b5c9d
2 changed files with 22 additions and 5 deletions

View File

@@ -6,7 +6,7 @@
# MIT Licensed
---
var cacheList = [
const include = [
/*--- CSS ---*/
@@ -99,7 +99,6 @@ var cacheList = [
/*--- Others ---*/
{% if site.google_analytics.pv.enabled %}
'{{ "/assets/data/pv-data.json" | relative_url }}',
'{{ "/assets/lib/countUp.min.js" | relative_url }}',
'{{ "/assets/js/dist/pageviews.min.js" | relative_url }}',
{% endif %}
@@ -110,3 +109,8 @@ var cacheList = [
'{{ "/app.js" | relative_url }}',
'{{ "/sw.js" | relative_url }}'
];
const exclude = [
'/assets/data/pv-data.json',
'/img.shields.io/'
];