my site generates images dynamically that users can link to for use as signature images in web forums and blogs hosted on other servers. However, the forum/blog site often shows an outdated image because the browser has cached an older version of the dynamic image (which of necessity must always use the same file name).
How do I ensure that the image is not cached, so that the most recent image is always displayed?
I found an existing site that puts slogans in signatures and also generates these images dynamically, and seems not to have this problem. The link to the dynamically updating (every 30 seconds) sig file on this site is:
<img src="http://www.sloganizer.net/en/image,sample,white,black.png" border="0" "/>
so there seems to be some way to do it but I don't know how.. thanks for your help
I am also curious what the "image,sample,white," part of the image link does, since it is not part of the file name..
I have been told that I can use
Pragma: no-cache
Cache-Control: no-cache
Expires: 0
to prevent caching on my own pages, but if the images are hosted on a site over which neither I nor the user has control of the html, this is not an option.
Thanks for your help.
How do I ensure that the image is not cached, so that the most recent image is always displayed?
I found an existing site that puts slogans in signatures and also generates these images dynamically, and seems not to have this problem. The link to the dynamically updating (every 30 seconds) sig file on this site is:
<img src="http://www.sloganizer.net/en/image,sample,white,black.png" border="0" "/>
so there seems to be some way to do it but I don't know how.. thanks for your help
I am also curious what the "image,sample,white," part of the image link does, since it is not part of the file name..
I have been told that I can use
Pragma: no-cache
Cache-Control: no-cache
Expires: 0
to prevent caching on my own pages, but if the images are hosted on a site over which neither I nor the user has control of the html, this is not an option.
Thanks for your help.