- corretto che compare errore server mentre il token è scaduto

This commit is contained in:
Surya Paolo
2025-03-14 20:21:32 +01:00
parent 564a621aad
commit dfce2bc5eb
120 changed files with 569 additions and 4452 deletions

View File

@@ -3,7 +3,7 @@
/* global workbox */
/* global cfgenv */
const VITE_APP_VERSION = "1.2.21";
const VITE_APP_VERSION = "1.2.23";
const CACHE_NAME = 'pwa-cache-' + VITE_APP_VERSION; // Nome della cache
@@ -15,6 +15,7 @@ import { registerRoute, NavigationRoute } from 'workbox-routing';
import { setCacheNameDetails } from 'workbox-core';
import {
NetworkOnly,
NetworkFirst,
StaleWhileRevalidate,
CacheFirst,
} from 'workbox-strategies';
@@ -190,7 +191,7 @@ if (workbox) {
// Gestione API
registerRoute(
({ url }) => url.hostname === API_DOMAIN,
new NetworkOnly({ fetchOptions: { credentials: 'include' } })
new NetworkFirst({ fetchOptions: { credentials: 'include' } })
);
/*registerRoute(