Comments (2)
Ah actually, i found the issue. Seems like:
var filesToCache = [
'/', <-------------------------------- THIS WAS CAUSING THE ISSUE.
'/images/icons/icon-72x72.png',
'/images/icons/icon-96x96.png',
'/images/icons/icon-128x128.png',
'/images/icons/icon-144x144.png',
'/images/icons/icon-152x152.png',
'/images/icons/icon-192x192.png',
'/images/icons/icon-384x384.png',
'/images/icons/icon-512x512.png',
];
When i removed the line highlighted above, the cache was successfully refreshed. Not sure but might be useful to others, it could be because that the '/'
route has some unsupported files that can't be cached/ready by javascript (?).
from laravel-pwa.
Hello @jmigdelacruz try to use "." instead of "/" ... you can read more about in https://developers.google.com/web/ilt/pwa/offline-quickstart
from laravel-pwa.
Related Issues (20)
- Force Download Web App HOT 1
- can't add to homescreen on iOS HOT 1
- splash
- Sail, Vue3, Laravel10, Vite3 fixed assets, how to?
- Filamentphp support? HOT 1
- iPhone 13 Pro Max Splash screen HOT 2
- have bug in pwabuilder.com HOT 1
- Mobile Popup (Install) HOT 1
- Probably conflicting with jetstream's folders structure
- It only works on artisan serve HOT 3
- White screen show in Iphone device in place of Splash screen
- This site canβt be reached error
- Offline redirect for Reactjs
- foreach() argument must be of type array|object, null given HOT 2
- @Laravelpwa cannot be detected
- how i can generate all images icons
- Multi tenancy with whitelabel HOT 1
- manifest.json is not created automatically?
- Prooblem to push updates/changes and force cache too reload HOT 1
- Laravel PWA: ServiceWorker registration failed: TypeError: Failed to register a ServiceWorker for scope ('<APP_URL>') with script ('<APP_URL>/serviceworker.js'): A bad HTTP response code (404) was received when fetching the script. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-pwa.