I have my Nginx web server running on both HTTP
and HTTPS
. If the application tries to open:
https://myapp.com/path1
it opens the application with HTTPS
but when it attempts to open using:
http://myapp.com/path1
the browser uses its cache and opens with https
. How could I prevent this? I have a button to open specific webpages. When someone clicks on the button, I create the URL and then call:
window.open(previewURL, "_blank");
Is there a way where I can force the browser to open using http
when I want in http
and https
when I want in https
?
If I open the webpage in a private window (incognito), the browser then won't redirect.