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

Service worker not working over HTTP #11

Open
germain-gg opened this issue Feb 26, 2021 · 1 comment
Open

Service worker not working over HTTP #11

germain-gg opened this issue Feb 26, 2021 · 1 comment

Comments

@germain-gg
Copy link

Hi,

I was browsing on stats website earlier and saw on the console the following error message

Service workers can only be used over HTTPS, or on localhost for development

Turns out that stats.codebar.io can be served both over HTTP and HTTPS.
Looking over the GitHub pages documentation, it seems possible to enforce use of HTTPS and get rid of that error altogether

@despo
Copy link
Member

despo commented Feb 26, 2021

Hi @gsouquet

Thanks for pointing this out. I know we usually enforce this on cloudflare but I think we only have three available rules on the free plan, and we are using all of them, which is likely the root cause of this.

Screenshot 2021-02-26 at 14 40 22

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

2 participants