Skip to content

Commit 6b8a661

Browse files
author
mcarbonell
committed
chore: Bump Service Worker version to v2.1.0
1 parent e9bee79 commit 6b8a661

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

web/sw.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
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
88
const 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
*/
3838
self.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
*/
6565
self.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 () => {

0 commit comments

Comments
 (0)