Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
http header / browser caching issuesby d_i_r_t_y (Monk) |
on Aug 30, 2001 at 12:08 UTC ( [id://109016]=perlquestion: print w/replies, xml ) | Need Help?? |
d_i_r_t_y has asked for the wisdom of the Perl Monks concerning the following question:
i'm currently having issues with browsers apparently caching the output of my cgi scripts, such that hitting 'back' or following a link to a script that has been called previously does not re-call the cgi script.
naturally, this often ends up with the old (and usually incorrect) information being shown.i have tried setting the http 'expires' header to 'now' and '-10d' (using the CGI::header method), and then verified the http headers by telnet'ing to port 80 and issuing manual http 1.1 GET's... all looks well - the expires header is there and set to the correct date/time etc... one thing i've done which is perhaps a little unusual is that all my scripts do not have suffixes - they are simply named 'query', 'results' etc -- i have accordingly setup apache to execute as CGI anything in a particular directory (and kept all my library *.pm's elsewhere...). can any web monk(-ey) provide any explanation or pointers as to why the silly browser (any browser) continues to cache the output of my cgi's? d_i_r_t_y
Back to
Seekers of Perl Wisdom
|
|