v1.5.9 (Actuel)
This commit is contained in:
+3
-3
@@ -1,4 +1,4 @@
|
||||
const CACHE_NAME = 'hydrhacked-v4.8';
|
||||
const CACHE_NAME = 'Agora-v1.5.2';
|
||||
const STATIC_ASSETS = [
|
||||
'/style.css',
|
||||
'/app.auth.js',
|
||||
@@ -45,7 +45,7 @@ self.addEventListener('fetch', event => {
|
||||
url.pathname.endsWith('.png') ||
|
||||
url.pathname.endsWith('.json');
|
||||
|
||||
if (!isStaticAsset || event.request.method !== 'GET') {
|
||||
if (!isStaticAsset || event.request.method !== 'GET' || !url.protocol.startsWith('http')) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -65,4 +65,4 @@ self.addEventListener('fetch', event => {
|
||||
return caches.match(event.request);
|
||||
})
|
||||
);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user