• Resolved androweb

    (@androweb)


    Hi Weston,
    I would like to know if simply de-activating this plugin is sufficient to ensure all returning website visitors will have their browsers PWA/offline cache removed, or whether they will still be directed to the PWA version of a website when offline or if the server is slower than 2 seconds to load, assuming the plugins default settings?

    Is there a period of time that the PWA or the offline cache in a visitors browser will expire and will be removed automatically on each users browser? If not, is the only way, to uninstall the PWA, and does this remove the offline cache as well, assuming that is a separate cache.

    I’m not that concerned with something that lingers for a few days or even a month, if it expires and deletes eventually on its own, but I am if it remains indefinitely without some intervention.

    Also I guess it is more of an issue with the offline browsing rather than the separate PWA app that you have to install. If a visitor is always on a slow connection they are always going to see the old offline cached version of the website, even though the plugin is no longer activated???

    I’ve seen various suggestions online for cleanly removing any PWA for all returning visitors, but not from yourself, so would be interested to hear your thoughts on the matter, albeit a bit cheeky of me to ask you best practise for removing your plugin, so apologies for that. I should also add that this plugin has worked perfectly for me, and the best and most trusted PWA solution I’ve found for WordPress, so I’m not looking to change just want run the website without a PWA for a while.

    Thanks.

    • This topic was modified 3 years, 1 month ago by androweb.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Weston Ruter

    (@westonruter)

    If you deactivate the plugin, any service workers installed on visitors’ browsers should be automatically uninstalled by the browsers in 24 hours.

    The browser should automatically remove any cached files when it needs to free up space. It will automatically remove the least-recently used data, so if the PWA service worker was uninstalled a week ago and none of the cached files have been used, then they’ll be likely chosen for eviction.

    Thread Starter androweb

    (@androweb)

    Great good to know it will eventually evict itself everywhere ?? just to clarify, you are referring to offline browsing only, whereas any installed PWA app will persist until its is uninstalled by the user?

    Will the web content accessed through the installed PWA app continue to follow the website changes or will it be frozen at the point the service workers were removed?

    Plugin Author Weston Ruter

    (@westonruter)

    There’s no difference between the site accessed via the browser and the site accessed via the PWA “app”. The app is essentially a shortcut on your homescreen. If you deactivate the PWA plugin, I’m not actually sure what happens to the shortcut you install to your homescreen. It may get automatically removed. In any case, the cached files will get evicted regardless.

    Thread Starter androweb

    (@androweb)

    Thanks, I’m finding the shortcut remains on the homescreen indefinitely, and some pages still load if offline, but I guess that is because they have yet to be evicted, as you said.

    Thanks again Weston.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Deactivating and removing plugin’ is closed to new replies.