Skip to content
New issue

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

script error when loading from cache on Chrome #479

Open
johanneswilm opened this issue Mar 16, 2020 · 0 comments
Open

script error when loading from cache on Chrome #479

johanneswilm opened this issue Mar 16, 2020 · 0 comments

Comments

@johanneswilm
Copy link

Hey,
I am keeping the static assets on a different domain than the main page (using cloudfront). This works fine with CORS set up and using output.crossOriginLoading: 'anonymous' in webpack. I let browsers register client side errors back to me using window.onerror
This works fine if I turn the offline plugin off. It also works fine if a user enters the website for the first time and the service workers is installing itself for the first time.

It does not work if the user returns for a second or subsequent visit. At this time, all errors are just reported as "Script error". This is a known problem and I had to go through all the recommended steps [1] to get it working. But if I enable the offline plugin, it stops working.

I am unsure if this is something that can be fixed in offline plugin or whether it is an issue with the browsers, or it's me who hasn't fully understood how to configure the offline plugin, but I thought this is likely the right place to find someone with knowledge about this.

[1] https://raygun.com/blog/script-error/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant