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

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
When do we use Cache-Control: public ?
Amtoj




msg:4112890
 12:47 pm on Apr 9, 2010 (gmt 0)

Hi I have a website which has some images and someone has suggested me to use 'Cache-Control: public" for my images but I couldn't get his explanation over to why use it ?

So plz can u guys help me out to understand it better ?/

 

tedster




msg:4113287
 10:36 pm on Apr 9, 2010 (gmt 0)

Here's what the W3C says:

public - Indicates that the response MAY be cached by any cache, even if it would normally be non-cacheable or cacheable only within a non- shared cache.

[w3.org...]

Amtoj




msg:4113761
 5:23 am on Apr 11, 2010 (gmt 0)

Sorry buddy but m not really into coding.... so can u just explain me in summary that why shld we use "Cache-Control: public" for my images ?

jdMorgan




msg:4113879
 2:41 pm on Apr 11, 2010 (gmt 0)

Generally, you don't need to declare this attribute in your Cache-Control header.

Jim

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
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