Forum Moderators: phranque
I'm not seeking to prevent someone from purposefully doing this, only to keep the browser from doing it automatically...?
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
I've seen advises to put them at the end of the document as well, like this:
</body>
<head>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
</head>
</html>
Can't guarantee that any of this works...
One way to get around this is to trick the browser into thinking that the file is created by a script and could be different each time it is retrieved from the server. You can do that by adding a '?' to the end of the url.
For example
[example.org...]
The webserver will ignore the '?' and still serve up the correct page.