From 9636612755179ad1c2bc8559613e853632f70b03 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Tue, 23 Mar 2021 15:42:10 +0800 Subject: [PATCH] Fix the cache list on service worker Adding '/index.html' to the cache storage --- assets/js/data/cache-list.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/assets/js/data/cache-list.js b/assets/js/data/cache-list.js index f52654b..32b4c84 100644 --- a/assets/js/data/cache-list.js +++ b/assets/js/data/cache-list.js @@ -19,11 +19,12 @@ const include = [ '{{ "/sw.js" | relative_url }}', /* --- HTML --- */ - + '{{ "/index.html" | relative_url }}', + '{{ "/404.html" | relative_url }}', {% for tab in site.tabs %} '{{ tab.url }}', {% endfor %} - '{{ "/404.html" | relative_url }}', + /* --- Icons --- */