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

localhost being redirected to https #451

Closed
drKnoxy opened this issue Jan 4, 2018 · 4 comments
Closed

localhost being redirected to https #451

drKnoxy opened this issue Jan 4, 2018 · 4 comments
Labels

Comments

@drKnoxy
Copy link

drKnoxy commented Jan 4, 2018

Do you want to request a feature or report a bug?
bug

What is the current behavior?

  1. Open Chrome
  2. Run yarn serve click on the link to the https server.
  3. Stop the server
  4. Run yarn dev
  5. You can't access the http server because you keep getting upgraded to https

If the current behavior is a bug, please provide the steps to reproduce.

What is the expected behavior?
Not sure, i had to empty cache and reload the page per these instructions
https://stackoverflow.com/questions/25277457/google-chrome-redirecting-localhost-to-https

If this is a feature request, what is motivation or use case for changing the behavior?

Please mention other relevant information.

  • node version
  • npm version
  • Operating system: OSX
@developit
Copy link
Member

I don't think there's anything we can do about this, it's just how redirects are cached.

@reznord
Copy link
Member

reznord commented Feb 14, 2018

I don't think there's anything we can do about this, it's just how redirects are cached

can we check for the service-worker while running preact watch and if it is present, we can un-register the SW and delete it).

What do you think @lukeed @developit ?

@osdevisnot
Copy link
Contributor

My 2 cents. Although we can not fix it since this is how SW caching works. We can help users if use different ports for dev vs serve commands. For Example: yarn dev starts dev server on http://localhost:1234 and yarn serve starts prod served on https://localhost:8080. If interested, I can present the changes in PR.

@ForsakenHarmony
Copy link
Member

serve is gone in next anyways

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

No branches or pull requests

5 participants