File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 11// sw.js - Service Worker para FastTools
22// Cache name con version para invalidar cache cuando actualicemos
3- const CACHE_NAME = 'fasttools-v2.0 .0' ;
4- const STATIC_CACHE = 'fasttools-static-v2.0 .0' ;
5- const DYNAMIC_CACHE = 'fasttools-dynamic-v2.0 .0' ;
3+ const CACHE_NAME = 'fasttools-v2.1 .0' ;
4+ const STATIC_CACHE = 'fasttools-static-v2.1 .0' ;
5+ const DYNAMIC_CACHE = 'fasttools-dynamic-v2.1 .0' ;
66
77// Recursos críticos que deben estar siempre en cache
88const STATIC_ASSETS = [
@@ -36,7 +36,7 @@ const MAX_CACHE_SIZE = 50; // Máximo número de items en cache dinámico
3636 * Se ejecuta cuando el SW se instala por primera vez
3737 */
3838self . addEventListener ( 'install' , ( event ) => {
39- console . log ( '[SW] Installing Service Worker v2.0 .0' ) ;
39+ console . log ( '[SW] Installing Service Worker v2.1 .0' ) ;
4040
4141 event . waitUntil (
4242 ( async ( ) => {
@@ -63,7 +63,7 @@ self.addEventListener('install', (event) => {
6363 * Se ejecuta cuando el SW toma control de la página
6464 */
6565self . addEventListener ( 'activate' , ( event ) => {
66- console . log ( '[SW] Activating Service Worker v2.0 .0' ) ;
66+ console . log ( '[SW] Activating Service Worker v2.1 .0' ) ;
6767
6868 event . waitUntil (
6969 ( async ( ) => {
You can’t perform that action at this time.
0 commit comments