|
|
|
|
|
|
![]() |
#4 |
Aw, Dad, you've done a lot of great things, but you're a very old man, and old people are useless
|
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" |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | Rate This Thread |
|
|