:How to reload Thumbnails and avoid browser cache?

If your webbrowser stores your thumbnails in the browser cache and does not refresh them when you hit the browser reload button, you have the following two choices:

1/2) Meta Tags

You may add the following meta tags to your homepage:

<meta http-equiv=pragma content=no-cache>
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
<meta http-equiv="Expires" content="0">

 

2/2) JavaScript

You may reload them by using JavaScript. Add the following JavaScript code for each thumbnail:

<SCRIPT language="JavaScript" type="text/javascript">
tmp = new Date();
tmp = "?"+tmp.getTime();
document.write('<IMG src="thumbnail.jpg"' + tmp + ' width="100" height="80" border="1"">');
</SCRIPT>

You need to change "thumbnail.jpg" (= picture file name) for each thumbnail picture, where "100" represents the width and "80" the height of the thumbnail picture.

 


[<< Go Back]