We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SW loads both .js and js.gz version:
Just load one version of the file
First load of a page.
1.7
NO
Tested on https://stage.ribatex.se/ Also the .gziped version looks a bit wierd in devtools and missing "encoding type": gzip
The text was updated successfully, but these errors were encountered:
@patzick can you update the precache regex in the meantime ?
Sorry, something went wrong.
@patzick is this fixed already?
vuestorefront#2254 compress only js files and do not prefetch uncompr…
3a1f522
…essed
Filterout the files you dont need. Solution is here.
workbox.precaching.precacheAndRoute((self.__precacheManifest || []).filter((e) => { if ( e && e.url && e.url.match && e.url.match(/(assetlinks.json|offline.html.br|manifest.json|.js.br|.css.br|.jpg|.png|.svg|.webp|.gif|.ico|.woff2)/) ) { return true; } return false; }));
patzick
No branches or pull requests
Current behavior
SW loads both .js and js.gz version:
![image](https://user-images.githubusercontent.com/5425824/51394357-7d8daa00-1b3a-11e9-9632-007c48f90d2c.png)
Expected behavior
Just load one version of the file
Steps to reproduce the issue
First load of a page.
Repository
1.7
Can you handle fixing this bug by yourself?
NO
Environment details
Additional information
Tested on https://stage.ribatex.se/
![image](https://user-images.githubusercontent.com/5425824/51394610-0b699500-1b3b-11e9-8c64-820f59b138ca.png)
Also the .gziped version looks a bit wierd in devtools and missing "encoding type": gzip
The text was updated successfully, but these errors were encountered: