Greenguy's Board


Go Back   Greenguy's Board > Newbie Questions
Register FAQ Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 2005-05-28, 04:01 PM   #4
Calliope
Aw, Dad, you've done a lot of great things, but you're a very old man, and old people are useless
 
Calliope's Avatar
 
Join Date: May 2005
Location: Minnesota
Posts: 26
Send a message via ICQ to Calliope
How do I make my website cache-server aware?
Content Expiration

In order to make your Web Site Cache Server Aware, you need to put a content expiration date/time in the META tags at the beginning of your HTML. This needs to be done for every page in your Web Site. META tags are put in the HEAD section of your HTML code. Here are some examples of code that will help you add content expiration to your site.


You can instruct the browser and server cache how many seconds to wait before reloading the page:

META HTTP-EQUIV="refresh" CONTENT="600"



This example would refresh every 600 seconds or 10 minutes. You can set any value for the seconds (0 and up)

You can set a date for the browser and server cache to reload your site:

META HTTP-EQUIV="expires" CONTENT="Fri, 30 Oct 2000 23:00:00 GMT"



The format is this: DAY, DATE MONTH YEAR HOUR:MINUTE:SECONDS GMT

The time must be Military Time (00-23) for hours and 00-59 in the minutes and seconds portion. It also must be in GMT format.

You can avoid caching by using an expired date as your expiration time:

META HTTP-EQUIV="expires" CONTENT="Mon, 24 Oct 1994 1:00:00 GMT"



Or avoid caching by using the "pragma" value:

META HTTP-EQUIV="pragma" CONTENT="no-cache"
Calliope is offline   Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:44 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc