You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I suspect that something is broken with the plugin gatsby-plugin-offline. On HTTP Chrome alerts that since the service worker does not have a HTTPS origin it was blocked. Then the site works as expected. However when HTTPS is used there seems to be some error in the service worker and you can not switch between pages.
One way to solve this temporarily would be to try to disable or remove the gatsby-plugin-offline plugin.
The text was updated successfully, but these errors were encountered:
Removed the offline plugin. It is a very nice idea but could not get it to work correctly. To fix the issue it was not just enough to remove the plugin. I had to invalidate the AWS CloudFront edge caches, clear cache in Chrome AND restart the browser.
Removed gatsby-plugin-offline. Had to invalidate the CloudFront edge cache and reset Chrome and FireFox pretty hard. Getting rid of cached service workers, sw.js, in browsers is hard. First you have to clear the cache, then you also have to restart the browser. Had to do this in both FireFox and Chrome.
I believe I have found the problem that blocks me from publishing the website.
HTTP local dev
No errors appear when developing locally.
HTTP, works correctly
When the site is tested on HTTP: http://dev.jonrh.is.s3-website-us-east-1.amazonaws.com/
HTTPS, does not work
When the site is tested on HTTPS: https://dev.jonrh.is/
The Problem
I suspect that something is broken with the plugin gatsby-plugin-offline. On HTTP Chrome alerts that since the service worker does not have a HTTPS origin it was blocked. Then the site works as expected. However when HTTPS is used there seems to be some error in the service worker and you can not switch between pages.
One way to solve this temporarily would be to try to disable or remove the gatsby-plugin-offline plugin.
The text was updated successfully, but these errors were encountered: