| Richard Bagshaw 2006-11-25, 6:55 pm |
| Hi Peeps,
This isn't directly CGI / perl, however I am currently working on a CGI
project and I have stumbled across something that I just cannot seem to
fathom. Basically I have written a perl script that displays some drop
down boxes on a page, each time the page loads the information is read
from the database and the drop downs are automatically set to the
correct values each time, however .. in firefox if I do a normal
refresh, the information is read from the database correctly, but the
html cached someplace? So basically, I took the following code, just as
HTML code and once again it cached even this simple code, when I change
the selected option in the source code (html) it doesn't reflect in the
browser unless I do CTRL-F5. Im sure this is simple, but seeing as it
works fine in IE, and Safari I wondered if anyone else had stumbled
across this before?
<html>
<head>
<META HTTP-EQUIV=3D"CACHE-CONTROL" CONTENT=3D"NO-CACHE">
<META HTTP-EQUIV=3D"PRAGMA" CONTENT=3D"NO-CACHE">
<meta http-equiv=3D"expires" content=3D"0">
<meta http-equiv=3D"refresh" content=3D"60">
<title>Test HTML</title>
</head>
<body>
<form name=3D"myform1" action=3D"blah.pl" method=3D"post">
<select name=3D"newpriority" onChange=3D"this.form.submit()"
size=3D"1">
<option value=3D"low">low</option>
<option selected value=3D"standard">standard</option>
<option value=3D"high">high</option>
</select>
</form>
</body>
</html>
Thanks,
Richard
|