Chrome keeps redirecting to old port

5,492

The answer is posted here: How can I make Chrome stop caching redirects?

I had the same issue while I was developing a new website locally by using Docker. I had to test some redirections on a previous project on a different port and then Chrome kept redirecting new project accessible by localhost to the previously used port. In the meantime, I was able to normally access localhost on the correct port by using Chrome in the incognito mode.

That did the magic:

Chrome Menu Chrome Menu > Settings > Show advanced settings... > Privacy > Click Clear browsing data...

I have cleared only cached images and files.

Share:
5,492

Related videos on Youtube

Waleed
Author by

Waleed

A young passionate software developer who loves to code. Currently working at Avolox Pvt ltd as a Team lead. I also write on my blog TechCuriosity.net for programming articles Here are some cool articles to read: React Native vs Cordova vs Ionic vs Onsen UI vs Framework 7 React + ASP.NET Core Signalr chat application Making gradient polylines using Google Maps API Entity Framework Multiple Cascade Paths Solved

Updated on September 18, 2022

Comments

  • Waleed
    Waleed over 1 year

    I was using XAMPP on port 100 for local development. I changed port back to 80 but Chrome won't let me use new urls.

    Previously: localhost:100/mywebsite

    Now when I open localhost/mywebsite it keeps redirecting me back to 100 port url which is not present. I have tried to clear browsing cache/history but it didn't work.

    • Vishwa
      Vishwa over 6 years
      is this happen after the new chrome update?
    • Waleed
      Waleed over 6 years
      i dont know, i think this has happened with all versions
    • Vishwa
      Vishwa over 6 years
      if you've installed skype, it uses port 80 as default.