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:
@@ -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/'
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user