Umair Umair - 1 year ago 62
Ajax Question

window.location.href and location.reload() does not load updated page from Server

I have a form being updated on AJAX call.

After Ajax call is succeeded, I want to reload that same page to reflect new changes.

I have used

after AJAX call is succeeded, a proper RELOAD on browser is performed but the form shows the old data, not new.

If I reload page using browser's reload button the newly updated data is shown.

But how do I reload a page properly using jQuery?


The method reload(forcedReload) accepts a Boolean flag, which, when it is true, causes the page to always be reloaded from the server. If it is false or not specified, the browser may reload the page from its cache.

Please try:

// Reload the current page, without using the cache