Welcome to WebmasterWorld Guest from 23.23.53.177

Forum Moderators: incrediBILL

Message Too Old, No Replies

When do we use Cache-Control: public ?

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

5+ Year Member



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)

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



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)

5+ Year Member



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)

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



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

Jim
 

Featured Threads

Hot Threads This Week

Hot Threads This Month