Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & phranque

Message Too Old, No Replies

Prevent client side caching

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

Junior Member

10+ Year Member

joined:Dec 31, 2007
posts: 198
votes: 0

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"

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

Senior Member

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

joined:Mar 31, 2002
votes: 0

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