Frequently Asked Questions

Mar 28, 2024 - 06:23am

 [F] Frequently Asked Questions  / Common Problems and Solutions  / Common Operational Questions  /

How can I get around Image Caching?

Rate This FAQ
 (Not yet rated)

Created On: 3 Nov 1999 11:39 am
Last Edited: 3 Nov 1999 11:40 am

Question Printer Friendly

I'm calling a script in web crossing to display banner ads. However when I go to a new page, the image isn't refreshed.

Answer

Your browser is caching the image. You need to fool the browser into going out and getting a new image each time. To do this, add a random element to your IMG tag's script call.

For example

<img src="http://www.yousite.com/AdScript.pl?act=img&file=stat2&nul= %%time L3%%" alt= "Visit Our Sponsor" border=0 height=50 width=400>

nul=%%time L3%% gives a 'random' value based on the time in milliseconds.