homepage Welcome to WebmasterWorld Guest from 54.227.67.210
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Prevent client side caching
vero




msg:3970510
 2:02 pm on Aug 12, 2009 (gmt 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"
</Files>

 

jdMorgan




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

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

Jim

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved