Forum Moderators: open

Message Too Old, No Replies

Best method to prevent caching

What is the best method for preventing caching of HTML pages?

         

jetnovo

10:37 pm on Dec 21, 2004 (gmt 0)

10+ Year Member



What is the best method for preventing caching of HTML pages?
I've heard that Internet Explorer and Netscape each require different meta tags to stop chaching.

jetnovo

10:42 pm on Dec 21, 2004 (gmt 0)

10+ Year Member



Check this out:


<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires" content="0">

Apparently it's best to cover oneself three ways!

Can anyone comment on the above code I found from a Google search? Is there anything else I should include?

rdenoie

12:14 pm on Dec 22, 2004 (gmt 0)

10+ Year Member



I know that you can put random data behind a questionmark on a url that changes each time it is requested. cache-busting. it is used for making sure that a banner is not cached, accurately reporting views and the such.

I think it is implemented through a java routine. don't know much past that.