Skip to content

Commit

Permalink
cache audio files
Browse files Browse the repository at this point in the history
  • Loading branch information
davay42 committed Nov 17, 2024
1 parent 39fde71 commit a9cf1c3
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions public/sw.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit a9cf1c3

Please sign in to comment.