Title: Precaching does not work
Last modified: March 24, 2024

---

# Precaching does not work

 *  Resolved [udinda](https://wordpress.org/support/users/udinda/)
 * (@udinda)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/precaching-does-not-work/)
 * i installed a wordpress project in my localhost, then install superpwa to enable
   pwa feature. I configure my laptop to be available through my network so my phone
   can access them through link similar to [https://192.168.100.62/my-wordpress-site](https://192.168.100.62/my-wordpress-site).
 * however it seems like the caching does not work, after visiting a certain page,
   then i disconnected my phone from the wifi, then trying to revisit that page,
   i get a default chrome’s “no internet connection”
 * the problem that im having is the same like this guy:
 * [https://wordpress.org/support/topic/how-do-i-get-page-caching-to-work/](https://wordpress.org/support/topic/how-do-i-get-page-caching-to-work/)
 * can anyone help?
    -  This topic was modified 2 years, 1 month ago by [udinda](https://wordpress.org/support/users/udinda/).

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [SuperPWA](https://wordpress.org/support/users/superpwa/)
 * (@superpwa)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/precaching-does-not-work/#post-17528418)
 * Hi, thank you for reaching out to us. We checked, but the shared URL is not working.
   Could you please share it once again so we can check?
 *  [Rohit Utekar](https://wordpress.org/support/users/ultimatespy/)
 * (@ultimatespy)
 * [2 years ago](https://wordpress.org/support/topic/precaching-does-not-work/#post-17702496)
 * I am experiencing a similar issue on my website, which is caused by an undefined
   JavaScript variable in the auto-generated `superpwa-sw.js` file.
 * ![](https://i0.wp.com/support2.lsdsoftware.com/dropmeafile/706109f56a/4872c191fb/
   error.png?ssl=1)
 * I resolved it by manually updating the code in the `app/public/wp-content/plugins/
   super-progressive-web-apps/public/sw.php` file on line 301. We need to change`
   return cache.match(e.request.url);` to `return caches.match(e.request.url);`.
 * Implementing this fix in future updates would help prevent precaching issues.
 *  Plugin Author [SuperPWA](https://wordpress.org/support/users/superpwa/)
 * (@superpwa)
 * [2 years ago](https://wordpress.org/support/topic/precaching-does-not-work/#post-17706331)
 * [@udinda](https://wordpress.org/support/users/udinda/) Hi, kindly confirm once
   whether you are still facing the same issue?
 *  Plugin Author [SuperPWA](https://wordpress.org/support/users/superpwa/)
 * (@superpwa)
 * [2 years ago](https://wordpress.org/support/topic/precaching-does-not-work/#post-17712202)
 * [@udinda](https://wordpress.org/support/users/udinda/) Hi, we have released the
   new update **version 2.2.26**, in which we have addressed the **pre-caching offline
   URLs** issue. Kindly update the plugin to the new version and give it a try.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Precaching does not work’ is closed to new replies.

 * ![](https://ps.w.org/super-progressive-web-apps/assets/icon-128x128.png?rev=1842063)
 * [Super Progressive Web Apps](https://wordpress.org/plugins/super-progressive-web-apps/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/super-progressive-web-apps/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/super-progressive-web-apps/)
 * [Active Topics](https://wordpress.org/support/plugin/super-progressive-web-apps/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/super-progressive-web-apps/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/super-progressive-web-apps/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [SuperPWA](https://wordpress.org/support/users/superpwa/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/precaching-does-not-work/#post-17712202)
 * Status: resolved