Re: HTTP headers

From: David J N Begley <david@dont-contact.us>
Date: Mon, 4 May 1998 22:26:13 +1000 (EST)

On Mon, 4 May 1998, Vladimir Litovka wrote:

> From: Vladimir Litovka <squidl@barnet.kharkov.ua>
> Reply-To: doka@webest.com

Tried replying to you via email, but IP traffic takes 25-30 hops to reach
your site from us and traceroute is really screwing up 'round Moscow
(trip times jump significantly at that point).

Given that it's *partly* relevant (proxy-related HTTP headers - granted,
it's a fine line), I've replied here.

> Ok, I'm using Apache with PHP - script language, embedded in Apache as
> module. It generates text/html documents, but I can send any headers from
> this script. Will Apache creates own Expires: headers (accordingly to
> mod_expires), if there is already exists such header, but generated from
> my script?

Only one way to find out! I've got PHP 3.0RC4 running as a module under
Apache 1.2.6, so I did a little experiment. The results were:

- if there was no "Expires:" header generated by the PHP script, Apache
  generated its own;

- if an "Expires:" header was already present then Apache didn't change
  it.

These are the "Expires:" headers that Squid will see and act upon; if the
information was left as "META HTTP-EQUIV" inside HTML, it would have been
ignored.

> What about "Cache-control" and other HTTP headers? Is there possibility
> to send this headers like Expires: ?

Yes - use the Header() function in PHP (if using CGI, just return the
header in the same way as the "Content-type:" header - for static
objects, read the Apache docs regarding "meta" information/headers).

> BTW is there Apache's related mailing lists? The discussion under this
> subject not for this list ;)

I'm not aware of a mailing list, though you could try this Usenet
newsgroup:

  comp.infosystems.www.servers.unix

Or one of these Web sites:

  http://www.apache.org/
  http://www.apacheweek.com/

Cheers..

dave
Received on Mon May 04 1998 - 05:36:24 MDT

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