Hello friends, today I was working on a project and in the project I need to refresh the current page without loading the cache. So I found the solution and I think it will share with you.
Let’s see the code line what you can use to reload the whole page from server not from the cache. So we will use
reload() function of
As you see we use the
reload() function and pass the
true parameter to load the page from the server. If you don’t pass the
true parameter then it will load the page from the cache.
So you can use the above function as following code.
When you click on the button then the
reload() function call and force the page to load from the server. You can use this function on any event but not on the window.load and document.ready, becasue it will be infinite.
Being Tricky 😉