This commit is contained in:
EduardSkibidiEdger 2024-12-01 00:10:17 +02:00
parent 85d8061908
commit bb2eba07ba
5 changed files with 335 additions and 114 deletions

View file

@ -35,7 +35,7 @@ self.addEventListener('fetch', function(event) {
const fetchResponseClone = fetchResponse.clone();
// Check if the file ends with .mp3 or .flac
if (requestUrl.pathname.endsWith('.mp3') || requestUrl.pathname.endsWith('.flac')) {
if (requestUrl.pathname.endsWith('.txt') || requestUrl.pathname.endsWith('.iso')) {
caches.open(CACHE_NAME).then(function(cache) {
cache.put(event.request, fetchResponseClone);
});