Click to See Complete Forum and Search --> : ask for HTML expire


KarlZheng
June 17th, 2008, 06:27 AM
I make this sentences:

<META HTTP-EQUIV="Expires" CONTENT="Mon, 16 Jun 2007 05:54:00 GMT">

in my homepage.The web server is Apache2.2,
when I use fidder to debug web, why can't get the Expire respond header from the web server?

PeejAvery
June 17th, 2008, 08:47 AM
You can force server-side refresh by using any server-side language. Here is an example in PHP.

<?php
header('Cache-Control: no-cache, must-revalidate');
header('Pragma: no-cache');
header('Expires: Sat, 20 Oct 2007 00:00:00 GMT');
?>

KarlZheng
June 17th, 2008, 09:46 PM
You can force server-side refresh by using any server-side language. Here is an example in PHP.

<?php
header('Cache-Control: no-cache, must-revalidate');
header('Pragma: no-cache');
header('Expires: Sat, 20 Oct 2007 00:00:00 GMT');
?>

yes,I have ever done it like you said by using PHP,
But I want to know if I can implement it using HTML?

KarlZheng
June 17th, 2008, 09:48 PM
I don't know why I can't get the Expire respond header from the web server when using that HTML sentence?

PeejAvery
June 18th, 2008, 07:55 AM
Why don't you use all three?

<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="Expires: Sat, 20 Oct 2007 00:00:00 GMT">

KarlZheng
June 18th, 2008, 09:06 PM
Why don't you use all three?

<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="Expires: Sat, 20 Oct 2007 00:00:00 GMT">

I write the code not for designing home page,But for test the cache policy of IE explorer.....

and even I write these three sentence in the hompage, and monitor the http stream. still no finding the Expire header been sending......