• Resolved axmann

    (@axmann)


    Hi there,

    I’d like to ask you 2 things.

    1)
    Does changing things like app name, icon or background color take effect once users have installed the PWA? For me it seems like reinstalling is the only way to make it happen. Is this the expected behavior or am I missing something?

    2)
    Does the cache not expire until max cache time is exceeded? I’m wondering how to ensure that users see updated contend on pages instantly while they see a cached version as long as nothing changes. You’re documentation couldn’t help me out yet.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Magazine3

    (@magazine3)

    1. no need to reinstall for changes. When the PWA is launched, or opened in a browser tab, Chrome determines the last time the local manifest was checked for changes. If the manifest hasn’t been checked since the browser last started, or it hasn’t been checked in the last 24 hours, Chrome will make a network request for the manifest, then compare it against the local copy.
    Summary: in 24 hr it will update automatically

    2. When you use “network first” in caching strategy, it always grabs new content from the server and saves it in the cache when you are online. If you go offline that cached copy will serve.

    Thread Starter axmann

    (@axmann)

    1)
    Sounds good basically but unfortunately I’ve never seen this behavior before. Just to understand you right, this requires to have the PWA opened 24 hours without closing it or the browser? If so can it run in the background?

    2)
    Ok, got it. Is there a way to set up this behavior while users are online?

    Open PWA -> check for new content -> new content found -> serve it + cache it
    Open PWA -> check for new content -> no new content -> serve cached version

    Plugin Author Magazine3

    (@magazine3)

    1. No need to open it, it will run in the background.
    2. Use Network first “caching strategy”.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Updates & Cache’ is closed to new replies.