Chrome keeps redirecting to old port
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.
Related videos on Youtube
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, 2022Comments
-
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 over 6 yearsis this happen after the new chrome update?
-
Waleed over 6 yearsi dont know, i think this has happened with all versions
-
Vishwa over 6 yearsif you've installed skype, it uses port 80 as default.
-