Window.location.href Works Only After Clearing Browser Cache On Ie
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:
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
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"