Link to home
Start Free TrialLog in
Avatar of shahrahulb
shahrahulb

asked on

prevent caching

if i open the url on the same window it returns the cahched data.
if i open in new window it works fine...

how do i prevent CGI from caching.


Rahul
Avatar of shahrahulb
shahrahulb

ASKER

i alreaady tried

print "<html> <head>
<META Http-Equiv=\"Cache-Control\" Content=\"no-cache\">
<META HTTP-EQUIV=\"Pragma\" CONTENT=\"no-cache\">
<META http-equiv=\"Expires\" CONTENT=\"0\">

</head></html>";

not working
is it possible that server is caching this data?????
Hi shahrahulb,
> is it possible that server is caching this data?????

not very likely, unless you have a proxy server in between.
try adding the headers to the actual http header too, instead of just the meta's.

also, check what your browser does: install Firefox and get yourself the livehttpheaders extension. it's a life saver.

HTH,
Kandura
Avatar of Tintin
CGI scripts aren't cached as they dynamically generate their output.  However, if your webserver runs in a cluster, you may run into problems that appear to look like caching issues.
ASKER CERTIFIED SOLUTION
Avatar of ahoffmann
ahoffmann
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial