Hi, I'm trying to make my PWA / SPA application offline friendly, but I have a problem.
I use serwist/next, configuration is from the documentation, and my base URL is simply the root https://test.com/, Next.js 14.1.4.
The sw looks like :
// Check this : https://serwist.pages.dev/docs/next/getting-started
import { defaultCache } from "@serwist/next/worker";
import { Serwist } from "serwist";
const serwist = new Serwist({
precacheEntries: self.__SW_MANIFEST,
skipWaiting: true,
clientsClaim: true,
navigationPreload: true,
runtimeCaching: defaultCache
});
serwist.addEventListeners();
I can install the application on devices, it works online without problems. If I poweroff the Wifi connection, my app still working UNLESS I close the app (or make F5 in the browser) : no-network error makes the app down...
I miss something in the configuration ?
Thanks for your tips