title: Why browsers caches 301 redirect for http://example.com and use it for http://example.com:8080?
body: <p>I have two site on two different web server(<strong>NGINX &amp; nodejs</strong>) on my <strong>CentOS</strong> server.<br>
  in my <em>NGINX</em> config, I have set <strong><em><a href="http://example.com" rel="nofollow noreferrer">http://example.com</a></em></strong> to be redirected to <strong><em><a href="https://example.com" rel="nofollow noreferrer">https://example.com</a></em></strong> permanently.<br>
  on the other side, the URL <strong><em><a href="http://example.com:8080" rel="nofollow noreferrer">http://example.com:8080</a></em></strong> are handle by <strong>nodejs</strong> and is not redirected to anywhere.  </p>
  
  <p><strong>Scenario</strong>  </p>
  
  <p>When I request <strong><em><a href="http://example.com" rel="nofollow noreferrer">http://example.com</a></em></strong> in my browser (<strong>Chrome, firefox or safari</strong>), it's redirected to <strong><em><a href="https://example.com" rel="nofollow noreferrer">https://example.com</a></em></strong> and this is OK. when I enter <strong><em><a href="http://example.com:8080" rel="nofollow noreferrer">http://example.com:8080</a></em></strong>, it's also redirected to <strong><em><a href="https://example.com:8080" rel="nofollow noreferrer">https://example.com:8080</a></em></strong> and this is not correct.  </p>
  
  <p>When I clear browser cache, the URL <strong><em><a href="http://example.com:8080" rel="nofollow noreferrer">http://example.com:8080</a></em></strong> worked correctly but after entring <strong><em><a href="http://example.com" rel="nofollow noreferrer">http://example.com</a></em></strong>, the URL <strong><em><a href="http://example.com:8080" rel="nofollow noreferrer">http://example.com:8080</a></em></strong> redirected again to <strong>HTTPS</strong>. Can anyone help me about this issue?</p>