readtomyshoe icon indicating copy to clipboard operation
readtomyshoe copied to clipboard

Add note about "secure contexts" for offline mode

Open rozbb opened this issue 3 years ago • 0 comments

Currently, if you run scripts/prod.sh on your local network, offline mode will fail. The reason for this is because service workers can only be registered in "secure contexts" meaning localhost or http://..., and no more. This might be surprising for a developer trying out the server for the first time and finding that one of the core features doesn't work.

Make a prominent note somewhere saying that this is the expected behavior, and that you can only sample offline mode when you're localhost or running a real HTTPS server.

rozbb avatar Aug 22 '22 07:08 rozbb