From a9cf1c311491edd54998b2e2891aeb34f1ea215b Mon Sep 17 00:00:00 2001 From: davay Date: Sun, 17 Nov 2024 15:19:09 +0700 Subject: [PATCH] cache audio files --- public/sw.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/public/sw.js b/public/sw.js index 3a2de28..2dd3a86 100644 --- a/public/sw.js +++ b/public/sw.js @@ -1,9 +1,20 @@ -const CACHE_NAME = 'circular-cache-v.0.1.1'; +const CACHE_NAME = 'circular-cache-v.0.1.1-0'; const ASSETS_TO_CACHE = [ '/', '/index.html', '/logo.svg', - '/audio/*.mp3' + '/audio/metronome/ping/high.mp3', + '/audio/metronome/ping/low.mp3', + '/audio/metronome/block/high.mp3', + '/audio/metronome/block/low.mp3', + '/audio/metronome/seiko/high.mp3', + '/audio/metronome/seiko/low.mp3', + '/audio/metronome/tongue/high.mp3', + '/audio/metronome/tongue/low.mp3', + '/audio/metronome/synth/high.mp3', + '/audio/metronome/synth/low.mp3', + '/audio/metronome/keyboard/high.mp3', + '/audio/metronome/keyboard/low.mp3', ]; // Install Service Worker