Days
Hours
Minutes
Seconds

New Year Sale is here!
40% off on Everything for a very limited time

Claim The Offer Now

superpwa_sw_never_cache_urls

Filter the neverCacheUrls in the service worker of SuperPWA.

apply_filters( 'superpwa_sw_never_cache_urls', '/\/wp-admin/,/\/wp-login/,/preview=true/' );

@since 1.8

Leave a Reply

Your email address will not be published. Please enter all fields.

Holkan Luna says:

Hello.
I’m trying to add one file to the neverCacheUrls via this filter hook ‘superpwa_sw_never_cache_urls’ in order to avoid the service worker to cache that file (component.js). Please refer to some documentation or thread. This page doesn’t say much https://superpwa.com/codex/superpwa_sw_never_cache_urls/ Thanks in advance

Arun Basil Lal says:

Hello Holkan,

Thanks for using SuperPWA. Please refer this comment where I helped another user use this filter: https://github.com/SuperPWA/Super-Progressive-Web-Apps/issues/24#issuecomment-395009238
You have to replace `\/sosyal` with `component.js`.

Hope this helps.

allan says:

Any possible way to exclude woocommerce ?

Team SuperPWA says:

Hi Allan,

Will you please contact our technical team from here- https://superpwa.com/contact/ they will help you as soon as possible.

allan says:

how to exclude woocommerce?

Team SuperPWA says:

Hi Allan,

Will you please contact our technical team from here- https://superpwa.com/contact/ they will help you as soon as possible.

Articles Linking Here

  • Pingback: WordPress を数分で PWA 化するプラグイン Super Progressive Web Apps
  • Stay Updated

    Learn more about Progressive Web Apps
    and get latest updates about SuperPWA

    we'll share our root password before we share your email with anyone else.