- corretto che compare errore server mentre il token è scaduto
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user