pwafire: Files not Working Offline | PHP Build
Describe the bug
I was working on a PHP project with file path /index.php
and includes /includes/header.php
Installed service worker in index.php
before closing body.
PWA works fine and Installs on Mobile and Desktop.
But I ran Light House audits check and discovered that the app does not work Offline.
Seem my return cache.addAll([
is not catching php files?
What could be wrong?
Expected behavior PWA should work Offline
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari] [ x ]
- Version [e.g. 22]
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 2
- Comments: 34 (34 by maintainers)
I just did the audit on it, it’s working offline !
Okay, I reverted to my last commit and moved the service worker installation code to head. Now service worker installs and I can add to home screen, but it still doesn’t work offline? How do I fix?
A normal error. Doe not have any adverse effect. Ignore it meanwhile : )