Connecting Tech Pros Worldwide Forums | Help | Site Map

How to tell the browser not to put in cache a certain element ?

mikek12004's Avatar
Familiar Sight
 
Join Date: Sep 2008
Location: Athens, Greece
Posts: 188
#1: Nov 10 '08
I want the content of a table row not to be put in the cache but ti be downloaded from the orginal server each time the page is loaded (only this table row not the rest of the site ). How is this possible?

drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 5,574
#2: Nov 10 '08

re: How to tell the browser not to put in cache a certain element ?


It's not. .
mikek12004's Avatar
Familiar Sight
 
Join Date: Sep 2008
Location: Athens, Greece
Posts: 188
#3: Nov 10 '08

re: How to tell the browser not to put in cache a certain element ?


It is then possible to define different TTL (time to live) for different elements and if not how can I define the TTL for the entire page?
drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 5,574
#4: Nov 10 '08

re: How to tell the browser not to put in cache a certain element ?


TTL can only be set for the page, too, not individual elements. Setting TTL is done on the server, typically with the programming language used there, but it can be done using <meta> tag.
<meta http-equiv="cache-control" content="max-age=3600">
Where the number is the time in seconds.
Reply