Update service-worker.js

This commit is contained in:
FURK4NGG
2024-09-09 16:36:33 +03:00
committed by GitHub
parent b6b8042328
commit 2149d59ed6
+3 -3
View File
@@ -1,4 +1,4 @@
const CACHE_NAME = 'my-site-cache-v3'; const CACHE_NAME = 'my-site-cache-v7';
let urlsToCache = [ let urlsToCache = [
'/', '/',
'/index.html', '/index.html',
@@ -26,7 +26,7 @@ const userLang = navigator.language || navigator.userLanguage;
// Eğer tarayıcı dili Türkçe ise /tr klasöründeki dosyaları ekle // Eğer tarayıcı dili Türkçe ise /tr klasöründeki dosyaları ekle
if (userLang.startsWith('tr')) { if (userLang.startsWith('tr')) {
urlsToCache = urlsToCache.concat([ urlsToCache = urlsToCache.concat([
'/hometr.html?v=1', '/hometr.html?v=3',
'/CSS/tr/1.css', '/CSS/tr/1.css',
'/CSS/tr/2.css', '/CSS/tr/2.css',
'/JAVASCRIPT/tr/1.js' '/JAVASCRIPT/tr/1.js'
@@ -34,7 +34,7 @@ if (userLang.startsWith('tr')) {
} else { } else {
// İngilizce dosyaları ekle // İngilizce dosyaları ekle
urlsToCache = urlsToCache.concat([ urlsToCache = urlsToCache.concat([
'/home.html?v=2', '/home.html?v=3',
'/CSS/1.css', '/CSS/1.css',
'/CSS/2.css', '/CSS/2.css',
'/JAVASCRIPT/1.js' '/JAVASCRIPT/1.js'