Welcome to WebmasterWorld Guest from 54.144.1.142

Forum Moderators: incrediBILL

Message Too Old, No Replies

When do we use Cache-Control: public ?

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

New User

5+ Year Member

joined:Mar 29, 2010
posts: 8
votes: 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 ?/
10:36 pm on Apr 9, 2010 (gmt 0)

Senior Member

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

joined:May 26, 2000
posts:37301
votes: 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...]
5:23 am on Apr 11, 2010 (gmt 0)

New User

5+ Year Member

joined:Mar 29, 2010
posts:8
votes: 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 ?
2:41 pm on Apr 11, 2010 (gmt 0)

Senior Member

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

joined:Mar 31, 2002
posts:25430
votes: 0


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

Jim