You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Chrome I could be without internet and everything is still working fine but on Firefox PWA the offline mode works only if the app is already open, when it comes to opening totally offline the window shows the usual "internet absent" message.
Shouldn't it be part of PWAs to support offline scenarios like a desktop app?
Steps to Reproduce
Do a first time install, open and login in a PWA
Close the window
Turn the airplain mode on
Open the PWA
The app can't connect to internet so it doesn't open or reuse the previous cached state
I thought Firefox by default caches PWAs that have a correct service worker for offline use, so I'm not sure why this happens. Maybe the cache persists only for a limited time, or there is a problem in Firefox with restoring the service worker cache. From my testing, it also seems this is not consistent and sometimes PWAs load correctly from cache and sometimes don't.
It may also depend on that. But I think that even caching with service worker expires after some time.
This kinda makes sense, as users probably don't want every website with service worker they visited (not installed) being stored forever, so Firefox probably has some mechanism that expires caches and service workers after some time. However, I don't know how exactly it works and it it's possible to disable it for installed PWAs.
Activity
filips123 commentedon Nov 11, 2021
I thought Firefox by default caches PWAs that have a correct service worker for offline use, so I'm not sure why this happens. Maybe the cache persists only for a limited time, or there is a problem in Firefox with restoring the service worker cache. From my testing, it also seems this is not consistent and sometimes PWAs load correctly from cache and sometimes don't.
Jaifroid commentedon Jan 24, 2024
I just tested this on Windows, and it seems to work OK for my PWA (pwa.kiwix.org). Maybe this depends on whether the PWA truly caches all its assets?
filips123 commentedon Jan 24, 2024
It may also depend on that. But I think that even caching with service worker expires after some time.
This kinda makes sense, as users probably don't want every website with service worker they visited (not installed) being stored forever, so Firefox probably has some mechanism that expires caches and service workers after some time. However, I don't know how exactly it works and it it's possible to disable it for installed PWAs.
domdfcoding commentedon Aug 15, 2025
Disappointing this doesn't work as offline use is my main reason for installing PWAs