Support » Plugin: PWA for WP & AMP » Trouble with refreshing offline caching

  • I use PWA just to let visitors see my web pages offline.
    However, PWA does not refresh all cached pages when revisiting my testsite (even though all pages have changed since last visit). PWA just refreshes the cache of the pages I actually revisit.
    I have unsuccessfully tried the different settings of Defult Caching Strategy.

    Is this the way it is supposed to work? When searching the forum I do not find an answer.

    • This topic was modified 4 months, 1 week ago by stebato.
    • This topic was modified 4 months, 1 week ago by stebato.

    The page I need help with: [log in to see the link]

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

    (@magazine3)

    We checked your issue. For this issue you need to change “default caching” strategy to “network first”. If you have any changes on CSS side then CSS also be changed.
    Because in cache first it will prefer to load cache content “until it’s cleared by expired date”.

    PWA -> Settings -> Advanced -> Caching Strategies

    Thanks a lot for replying so soon.

    I have unsuccessfully tried the different settings of Defult Caching Strategy.

    What I am trying to achieve is this:

    A) A visitor visits some of my site’s pages, e.g. homepage, page 3, page 4 and page 7.

    B) At some later time I update the text in page 4.

    C) Then the visitor visits my homepage and some of the other pages on my site, but NOT page 4.

    D) Later he visits my homepage OFFline and can see all pages that he has previously online-visited.

    E) However, he sees only the old (un-updated) version of page 4 because the cached page is the old version of page 4 (which was fetched in stage A).

    F) Since he has online-visited my site (but not page 4) after I updated page 4, his Service Worker technically should have had the opportunity to fetch the NEW page 4 (in stage C).

    G) Therefore I would expect the visitor to be presented with the NEW page 4 (not the old) even though he actually has not visited the new page 4 online. The Service Worker should have done it for him in stage C (since the old page 4 was in the cache).

    H) I wish the Service Worker to check for (and fetch) new versions of ALL its cached pages every time it online-visits my page.

    I) The point is I want the OFFline visitors to be presented updated pages as often/soon as possible.

    Kind Regards,
    Stebato

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.