From dba42edd38e0e7f3a9025863264aadf7a39b853b Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sun, 14 Jan 2024 12:46:50 +0800 Subject: add cache manually --- public/sw.js | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/public/sw.js b/public/sw.js index 45bcb29d..7f703a33 100644 --- a/public/sw.js +++ b/public/sw.js @@ -1,7 +1,28 @@ const cacheName = 'cache-v1' const resourceToPrecache = [ '/', - 'index.html', + '/index.html', + '/404.html', + '/css/style.css', + '/css/404.css', + '/css/index.css', + '/css/ghrepos.css', + '/css/about.css', + '/css/devicon.min.css', + '/js/main.js', + '/js/about.js', + '/js/dynamicBlob.js', + '/js/getrepo.js', + '/js/hacktype.js', + '/js/header.js', + '/js/index.js', + '/js/mouseblob.js', + '/js/randomblob.js', + '/js/rbg.js', + '/js/tilt.conf.js', + '/js/tilt.conf.noglare.js', + '/js/tilt.js', + '/js/2dtilt.js', // '/css/', // '/js/', // '/pages/', -- cgit v1.2.3