> It would seem that the images are being cached. DOH! I'm sure there is a way
> to prevent this, and the only images I wish to not cache are my ads. What's
> the best approach for this?
There is no 100% method from preventing all browsers, proxy servers, and
firewalls from cacheing a given file. The "Pragma: no-cache" HTTP header is
supposed to do this, but isn't always obeyed by these clients.
You can, however, trick it into working. For instance, if you just add a ? and
some random number to the URL within the <IMG> tag, then the client should see
this as a different file, but the Web server (Apache at any rate) will treat
this as a parameter being passed to a file which is not a CGI program, and
will therefore just send the file as normal.
So, for instance, this:
print qq|<img src="myfile.gif">|;
my $random = int(rand(100000));
print qq|<img src="myfile.gif?$random">|;
> >> So basically, it is getting the cgi script, but doesn't record the images
> >> that are served via this script. Is there a way around this? Is it
> >> that my images are simply cached by the requesting machine and therfore
> >> not served by my server?
> >Assuming the CGI script is just writing HTML code that includes <IMG> tags,
> >then either the browser has them cached (as you suspected) or the web
> >is set not to log images.
> >The way to test the browser thing would be a forced reload. In Netscape,
> >can do this with Shift-Reload of the page. For IE, the only way I know of
> >to quit the program and then purge the cache.
** Remove the REMOVE in my address address to reply reply **