Skip to content

Is offline cold start not working? #82

Open

Description

@thepra

Description

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

  1. Do a first time install, open and login in a PWA
  2. Close the window
  3. Turn the airplain mode on
  4. Open the PWA
  5. The app can't connect to internet so it doesn't open or reuse the previous cached state

Affected Websites

collAnon
immagine

Environment

  • Operating system: Windows 10
  • System architecture: x64
  • Installation method: MSI
  • FirefoxPWA extension version: 1.2.1
  • FirefoxPWA native version: 1.2.1
  • Firefox version: 94.0.1

Activity

  1. added
    bug
    on Nov 10, 2021
  2. filips123 commented on Nov 11, 2021

    @filips123
    Owner

    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.

  3. Jaifroid commented on Jan 24, 2024

    @Jaifroid

    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?

  4. filips123 commented on Jan 24, 2024

    @filips123
    Owner

    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.

  5. domdfcoding commented on Aug 15, 2025

    @domdfcoding

    Disappointing this doesn't work as offline use is my main reason for installing PWAs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions