• Hi,
    in [ redundant link removed ] I have some issues.
    On this site, I’m using Divi Theme and Toolset plugin and its addon.
    Well, using the site I had some issues in the back end and front end.
    I have asked Toolset support to solve the issues because the issues come using its plugins.
    Well, they have analyzed the entire site configuration and have found that the issues come from Super PWA plugin.

    Following you can find what they have written me.
    Can you help me, please?

    `This was a real head scratcher given what the developer was seeing vs what I was seeing when we were both editing the page at the same time but seeing different results.

    I eventually tracked down the problem, which arises from the Super Progressive Web Apps plugin.

    That plugin installs a service worker in any browser that visits the site.

    That service worker remains installed and active even if you de-activate the plugin.

    So some users (those that visited the site when the plugin was active) will see one thing (in this case, the problem), while other users who visit the site when the plugin has been de-activated will see something else (in this case, everything working normally).

    The question of which browser is used (Firefox or Chrome) was a red herring, simply reflecting whether the user had the service worker installed in their current browser or not.

    So the problem happens when saving the template because the service worker caches requests that don’t then reach the server.

    From my understanding of the purpose of the plugin—to give an app-like experience on mobile devices—it should only be operating on the front-end, I don’t imagine that you need an app-like experience for working in the WordPress admin pages.

    I suggest you contact the developers for clarification: should the service worker be operating on back-end operations. If it *is*, this is creating compatibility issues, and you would need to know more about how to disable it in the back end (I couldn’t find any such settings).`

    • This topic was modified 3 years, 7 months ago by Jan Dembowski.

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

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author SuperPWA

    (@superpwa)

    Can you please let us know what issues you have been facing? Also it’s better if you share screenshots as well. So that we will have a look and let you know back.

    Plugin Author SuperPWA

    (@superpwa)

    Can you please try to send screenshots of SuperPWA exclude URL setting? So that we will have a look and let you know back.

    Thread Starter funkman733

    (@funkman733)

    From the Toolset Support System I have this reply:

    I have tried adding the URLs of the REST API routes to the plugin settings for URLs to exclude, but they do not work, the service worker still intervenes in such requests.

    These are examples of the URLs I added to the exclusion list:

    https://online.nigel.otgs.work/wp-json/toolset-views/v1/*
    https://online.nigel.otgs.work/index.php/wp-json/toolset-views/v1/*
    https://online.nigel.otgs.work/wp-json/toolset-dynamic-sources/v1/*
    https://online.nigel.otgs.work/index.php/wp-json/toolset-dynamic-sources/v1/*

    (I added them as a comma-separated list, as per the plugin instructions.)

    But it doesn’t work.

    Plugin Author SuperPWA

    (@superpwa)

    You can place only that site URL not other sites and also when you are placing the URLs do not place stars* at the end. It shoud be only with /.

    Plugin Author SuperPWA

    (@superpwa)

    Can you please let us know what issues you have been facing exactly? Please let us know, So that we will let you know accordinhly.

    Thread Starter funkman733

    (@funkman733)

    I have this reply from Toolset support:

    That is a really unhelpful reply.

    The issue you are having is “settings saved via REST API requests on Toolset admin pages appear out of date because they are being served by the SuperPWA service worker instead of the server itself. SuperPWA should not be interfering in these requests. The simplest way to prevent this is to exclude the service worker from any requests to the Toolset REST API routes. Because these can include many endpoints which may evolve over time, that means allowing wildcards when declaring the URLs to be ignored.”

    There really is nothing we can do here, although it was difficult to diagnose the issue itself is very simple, as is the solution, but SuperPWA are the only ones who can implement it.

    If they are unable to help then I’m afraid you’ll need to make a choice between using Toolset or SuperPWA for your site.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    @funkman733 Don’t post email addresses in the forums again. You signed up someone else’s email for more spam and that’s bad. I have archived both of those posts.

    Plugin Author SuperPWA

    (@superpwa)

    Can you please share the URL of your website?

    Moderator Yui

    (@fierevere)

    永子

    Can you please share the URL of your website?

    Its below the 1st post of this topic

    Thread Starter funkman733

    (@funkman733)

    Hi, I’m sorry, but if I don’t have news about my issues, I will deactivate and uninstall the plugin. The time I have available for waiting is too short now, and I need to have the site working fine…

    Plugin Author SuperPWA

    (@superpwa)

    Can you please mention your issues exactly what you are facing with our plugin? So that we help you to resolve your issues accordingly. For a better understanding of the issue, please share at least few screengrabs of the issue. We are always here to help you to resolve your issues.

    Thread Starter funkman733

    (@funkman733)

    …Again 😞…

    This is the third or more time that you ask me this… above you can find all answers.

    I think that I need to deactivate and to uninstall the plugin.

    If after 3 weeks of this thread you ask me this again, I think that you don’t want to find a solution.

    Thank you

    Plugin Author SuperPWA

    (@superpwa)

    Extremely sorry for the inconvenience, Can you please add this below code in function.php of the theme

    The below code will exclude the API URL from the cache.

    
    add_filter('superpwa_sw_never_cache_urls', 'superpwa_support_exclude_json');
    function superpwa_support_exclude_json($urls_txt){
    
        $urls_txt .= ', /\/wp-json/';
       return $urls_txt;
    }
    
    
Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Issues with service worker caches requests’ is closed to new replies.