Unexpected token < after redeploy
See original GitHub issueLibrary Affected: workbox-sw v3.6.3
Browser & Platform: Google Chrome for Android
Issue or Feature Request Description:
I bundle my website/PWA, where I use a couple of Web Components, using the workbox-webpack-plugin
.
Everything works smooth and well till I redeploy the project (hosted on Firebase).
On my phone, if I clean my cache and get access the website/pwa, all good, worker works correctly.
Later on, once I release a new version, where I did several changes, and deploy it to the hosting and if I try to access the website/pwa with my phone, then I’ll face the following error:
Uncaught SyntaxError: Unexpected token <
Any help would be appreciated.
Source
The project is open source: https://github.com/deckgo/deckdeckgo-website
URL The website/pwa: https://deckdeckgo.com
Screenshot of the error
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (2 by maintainers)
Top GitHub Comments
Yeaaaah @jeffposnick, confirmed on two phones,
ignoreUrlParametersMatching
solved it, thx a looooooooott@jeffposnick thx for the feedback but I think I was not enough clear then in my original entry. The thing is, I don’t clear and I don’t to want to clear my my cache at all, I just did and specified that to make it clear that the error
Unexpected token <
doesn’t exist if the pwa was never fetchedso here again the scenario:
“user” access the PWA workbox cache the resources
-> All good
timeframe jump here, like a couple of days or weeks where I develop new features
I redeploy the PWA to Firebase Hosting
same “user” as above access the PWA again (without clearing anything) -> ERROR
Unexpected token <