Re: META HTTP-EQUIV="Expires" ..... (fwd)

From: Miquel van Smoorenburg <>
Date: 14 Oct 1998 11:42:59 +0200

In article <>,
Ross Wheeler <> wrote:
>I thought I could be cute and use the following:
><META HTTP-EQUIV="Expires" CONTENT="Wed, 14 Oct 1997 06:41:40 GMT">
>in the page, which is set to about a year ago, and should be well and
>truely expired! yet it STILL says TCP_HIT!

Squid doesn't parse HTML meta tags. In fact it isn't interested in any
content at all. The META tags are (if you're lucky) interpreted in the
users browser, not earlier.

So squid thinks it's got a fresh copy.

>What am I doing wrong?

You need to send the Expires: header at the HTTP level. If you're using
a CGI script to generate the page, it's as simple as:

print "Content-Type: text/html\n";
print "Expires: Wed, 14 Oct 1997 06:41:40 GMT\n";
print "\n";

If it's an .shtml file you need to look into the documentation of
the server you are running. For apache that would be the cern_meta_module
or the expires_module


  "Did I ever tell you about the illusion of free will?"
    -- Sheriff Lucas Buck, ultimate BOFH.
The From: and Reply-To: addresses are internal news2mail gateway addresses.
Reply to the list or to (Miquel van Smoorenburg)
Received on Wed Oct 14 1998 - 03:47:25 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:42:29 MST