-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Gatsby-plugin-offline 3.10.0 needs 3 page reloads to make site available offline #29375
Comments
Hi, thanks for the issue! I can't reproduce with your description: 2021_02_08_5c114d27.mp4The errors it prints are somewhat expected, the main site works though. It can't load the images yet as
But this is something you can add manually. The other sites are only preloaded once you visit them / they come into the view / you hover over them (not sure atm). Have you removed the old service workers in between tries? Maybe you're on an old version. |
Not Sure why but this rarely is a problem in chrome. Here's what it looks like in mobile edge. IMG_3287.MP4I guess there's some conflict with another plugin(?). I also added avif like you suggested, thanks for the hint, still no luck.
|
Hi! I guess at this point we'll need a minimal reproduction. This is a simplified example of the issue that makes it clear and obvious what the issue is and how we can begin to debug it. |
Hi! Since we didn't receive an answer for 7 days or more about the ask of a reproduction I'm going to close this now, as we can't do much to help without a reproduction. If you are able to create a minimal reproduction for this then please do answer here or open a new issue with a reproduction. Thanks! |
Description
I'm trying to make my site avaibale offline via service worker through gatsby-plugin-offline 3.10.0 (latest as of today).
It appears however that the site needs 3 refreshes before it can be loaded offline by the service worker.
I've tested the behavior on chrome, firefox, safari, opera and brave and all behave pretty much the same except for chrome desktop, where it appears to work on the first load sometimes.
Steps to reproduce
You can see the bahaviour when visiting inaki-breinbauer.de
I'm using the default configuration of gatsby-plugin-offline and netlify for hosting.
Here's my gastby-config:
Expected result
Site should be available for offline loading after 1. load.
Actual result
First offline load throws error. Second shows blank page. Only works after site has been loaded with connection 3 times.
Environment
The text was updated successfully, but these errors were encountered: