homepage Welcome to WebmasterWorld Guest from 54.167.75.155
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
Forum Library, Charter, Moderators: phranque

Website Technology Issues Forum

    
Can cache-control and basic authentication coexist?
encyclo




msg:4250014
 9:20 pm on Jan 6, 2011 (gmt 0)

I'm looking to speed us the viewing of some large graphics on a small site which uses basic authentication (Apache) controlling access for a small number of users. As the files are static, I can easily use a simple rule like
ExpiresByType image/jpeg "access plus 1 year" - but does anyone have experience regarding cache-control headers and preserving the authentication?

I want the files to be stored in the user cache but don't want intermediate public caches to serve the content without authentication.

 

lammert




msg:4258737
 2:24 am on Jan 27, 2011 (gmt 0)

Using the cache control type "private" should do the trick, as this one is explicitly designed for signaling intermediate public caches to not store the content.

RFC about cache headers [w3.org] section 14.9.1

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
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