Skip to content Skip to sidebar Skip to footer

Window.location.href Works Only After Clearing Browser Cache On Ie

I have stuck with really weird issue. Here is code sample $.ajax({ method: 'POST', data: content, url: '/signin/', success: function (response) { windo

Solution 1:

for this maybe because your browser is caching the content... lets see if you are using chrome, and you open developer mode, you can see this: enter image description here

and maybe something equivalent..

well, this is quite annoying as for javascript development because we have to open up the developer tools to make sure our script is not cached by browser. But since browser are intended primarily for consumer, not developer, we are the one who have to adjust ourselves to the browser, including either clear cache everytime, or let the developer window open.

hope this help

Edit: hope this help in case you use IE: enter image description here

Solution 2:

Actully redirection was not an issue. There was another bizzare issue, IE was using cached response when developer tool is not open as explained in this answer.

So I just had add cache : false to my ajax request.

Post a Comment for "Window.location.href Works Only After Clearing Browser Cache On Ie"