FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index mod_harbour How PWA navigation really works
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
How PWA navigation really works
Posted: Mon Jan 26, 2026 07:32 AM

A PWA is not a single HTML or PHP file. Whether a page opens “as a PWA” depends entirely on the manifest scope and the service worker, not on the file type. If you navigate inside the defined scope (e.g. /app/*), the page stays in the PWA window with the service worker active. As soon as a link points outside the scope (different path, subdomain, port, or absolute /), the app drops back to the normal browser. PHP vs HTML makes no difference – only the URL and scope matter.

Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: How PWA navigation really works
Posted: Mon Jan 26, 2026 07:55 AM

The Cache API only supports GET. If you cache blindly in fetch, POST requests will crash your Service Worker. Always filter by request.method === "GET".

Continue the discussion