Skip to content
Extraits de code Groupes Projets
Valider 17c1a62e rédigé par Akihiko Odaki's avatar Akihiko Odaki Validation de Eugen Rochko
Parcourir les fichiers

Consider only-if-cached in FetchEvent valid on non-Mozilla-Firefox browser (#7506)

parent 4511a10e
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -13,7 +13,8 @@ function fetchRoot() { ...@@ -13,7 +13,8 @@ function fetchRoot() {
return fetch('/', { credentials: 'include' }); return fetch('/', { credentials: 'include' });
} }
const invalidOnlyIfCached = navigator.userAgent.match(/Firefox\/(\d+)/)[1] < 60; const firefox = navigator.userAgent.match(/Firefox\/(\d+)/);
const invalidOnlyIfCached = firefox && firefox[1] < 60;
// Cause a new version of a registered Service Worker to replace an existing one // Cause a new version of a registered Service Worker to replace an existing one
// that is already installed, and replace the currently active worker on open pages. // that is already installed, and replace the currently active worker on open pages.
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter