Daniel Gontar
Daniel Gontar

Reputation: 157

Refresh browser cache memory with javascript

Is there any js function that refreshes browser cache? i.e deleting a row in a table and seeing the result on the browser straight away without the need of logging off and logging in to the system to see the change?

Upvotes: 0

Views: 189

Answers (1)

Carcigenicate
Carcigenicate

Reputation: 45826

location.reload(true);

Forces (in most browsers) the page to be reloaded from the server, and not loaded from a cache.

The argument given to reload specifies whether or not it should force fetching new data over loading from the cache.

Upvotes: 2

Related Questions