Don't cache html into hard drive
Posted on 2000-02-25
Here is what I have :
print "Content-type: text/html\n\n";
print "<meta http-equiv=\"Pragma\" CONTENT=\"no-cache\">";
print "<meta HTTP-EQUIV=\"Expires\" CONTENT=\"0\">";
let say, I put this code into 2.html , so here is what the user did :
1.html -> 2.html -> 3.html
now user is at 3.html. So, when he bit Back Button, user will see :
This document resulted from a POST operation and has expired from the cache. If you wish you can repost the form data to
recreate the document by pressing the reload button.
so user isn't able to see the display of 2.html, but why if user hit Back button, the user can see the display again ? How to program it, so when user hit back button, user will see only 1.html ?