delete cache
Posted: Wed Jan 27, 2021 10:39 am
Can I use Spiderbasic to delete the cache of the browser and the cache of the images in the browser?
untested:Stefan wrote:Can I use Spiderbasic to delete the cache of the browser and the cache of the images in the browser?
[b]Kevin Hakanson on StackOverflow[/b] wrote:You can call window.location.reload(true) to reload the current page. It will ignore any cached items and retrieve new copies of the page, css, images, JavaScript, etc from the server. This doesn't clear the whole cache, but has the effect of clearing the cache for the page you are on.
Code: Select all
! window.location.reload(true);
Put it into a procedure and call it, when a button is clicked (for example)Stefan wrote:Where does the code go? No matter where I insert it, I get an endless loop and the page reloads again and again.
Code: Select all
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-store" />
<meta http-equiv="expires" content="-1" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
Code: Select all
LoadImage(#YourImage, "[SomePath]/YourImage.png?rnd=" + ElapsedMilliseconds())
Code: Select all
LoadImage(#mypic,"myfolder/mypic17.jpg")
Code: Select all
LoadImage(#mypic,"myfolder/mypic17.jpg?rnd=" + ElapsedMilliseconds())