I am assuming that i have no control over users browsers and how often they check to see if a new page. I want this to be the only thing that caches.
A. Is there a way around using a new filename each time i generate the image.
Meta stuff does not seem to work like the following
<META HTTP-EQUIV="Expires" CONTENT="Tue, 01 Jan 1980 1:00:00 GMT">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
also the javascript load image (var image = "filename.jpg" or whatever) does not do the trick either.
B. If i have to create new images each page load for the thousands of users, how should i generate unique names for them...and how should i clean up later. An overlap would be dangerous.
I would like to keep the last version if possible so they can copy the url and be able to see it later, and i also can't let myself be overrun with temp images...thats why i would prefer to create just one image...
Andreas
Is really cool, but it makes it hard to see the page as the whole page reloads every so many seconds...
How do i add a time stamp to the image, that is the only thing i want to force a reload on.
I am generating a file from within the page that is external and then loading it into an image, so i am not sure i can affect the header without reworking the whole thing.
Is it possible to pass vars to php from html without submitting a page using javascript and then redrawing the image.
Put your graphic or where ever the graphic is being pulled from, in a single directory. Then set the headers in that directory via an .htaccess file:
Header add Cache-Control "max-age=0"
Header add Pragma "no-cache"
That will cause everything in that directory to reload on each browser view.
That is if you are using apache. If not, switch ;-)