mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2025-12-18 13:44:15 +00:00
Fix PWA error caused by service worker store the POST Request as cache key
fix #297, fix #301
This commit is contained in:
@@ -5,24 +5,27 @@ layout: compress
|
||||
---
|
||||
|
||||
const include = [
|
||||
/* --- CSS --- */
|
||||
|
||||
/*--- CSS ---*/
|
||||
'{{ "/assets/css/style.css" | relative_url }}',
|
||||
|
||||
/*--- Javascripts ---*/
|
||||
/* --- Javascripts --- */
|
||||
'{{ "/assets/js/dist/home.min.js" | relative_url }}',
|
||||
'{{ "/assets/js/dist/page.min.js" | relative_url }}',
|
||||
'{{ "/assets/js/dist/post.min.js" | relative_url }}',
|
||||
'{{ "/assets/js/dist/categories.min.js" | relative_url }}',
|
||||
'{{ "/assets/js/data/search.json" | relative_url }}',
|
||||
'{{ "/app.js" | relative_url }}',
|
||||
'{{ "/sw.js" | relative_url }}',
|
||||
|
||||
/*--- HTML ---*/
|
||||
/* --- HTML --- */
|
||||
|
||||
/* Tabs */
|
||||
{% for tab in site.tabs %}
|
||||
'{{ tab.url }}',
|
||||
{% endfor %}
|
||||
'{{ "/404.html" | relative_url }}',
|
||||
|
||||
/*--- Icons ---*/
|
||||
/* --- Icons --- */
|
||||
|
||||
{%- capture icon_url -%}
|
||||
{{ "/assets/img/favicons" | relative_url }}
|
||||
@@ -45,15 +48,7 @@ const include = [
|
||||
'{{ icon_url }}/favicon-16x16.png',
|
||||
'{{ icon_url }}/ms-icon-144x144.png',
|
||||
'{{ icon_url }}/manifest.json',
|
||||
'{{ icon_url }}/browserconfig.xml',
|
||||
|
||||
/*--- Others ---*/
|
||||
|
||||
'{{ "/assets/js/data/search.json" | relative_url }}',
|
||||
'{{ "/404.html" | relative_url }}',
|
||||
|
||||
'{{ "/app.js" | relative_url }}',
|
||||
'{{ "/sw.js" | relative_url }}'
|
||||
'{{ icon_url }}/browserconfig.xml'
|
||||
];
|
||||
|
||||
const exclude = [
|
||||
|
||||
Reference in New Issue
Block a user