Welcome to WebmasterWorld Guest from 54.166.54.215

Forum Moderators: Ocean10000 & incrediBILL & phranque

Prevent client side caching

   
2:02 pm on Aug 12, 2009 (gmt 0)

5+ Year Member



Just wanted to check that I did this correctly. I have a directory that I would prefer not being cached on the hard drive. I added this to the htaccess - is this right? It seems to work, but I wanted to check as I'm a total noobie

<Files *>
Header unset Cache-Control
Header append Cache-Control "private, no-cache, no-store"
Header append Pragma "no-cache"
</Files>

11:30 pm on Aug 12, 2009 (gmt 0)

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member



You should really only need:
 Header set Cache-Control: "no-store"

Jim
 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month