RE: How do I use "ExtraHeaders" keyword
"Maurus, Pavel" <[email protected]> Tue, 6 Apr 2004 15:23:16 +0400
| Newsgroups | gmane.network.mathopd |
|---|---|
| Message-ID | <[email protected]> |
>Control {
> ExtraHeaders { "Cache-Control: max-age = 15552000" }
>}
>
>I just typed this without checking. There is also an example in
>doc/config.txt.
Thanks!
>> And can you make patch to provide non static Expires: header? Because
>> other web servers use this two headers together and I'm not sure about
>> 100% with all browsers with only Cache-Control header response.
>Expires is very old. I'm not really sure whether it is worth it to
>continue to support this.
There are two arguments for "Expires" header:
1) There's no "Cache-Control" header in HTTP/1.0 protocol. And still there are a lot of HTTP/1.0 requests, especially for images (about 25% of traffic you can look http://gameguru.ru/server-status)
2) "Cache-Control" has priority for "Expires" header in HTTP/1.1 protocol and nothing stops from using both "Cache-Control" and "Expires" headers and Cache-Control can form Expires header for compatibility with HTTP/1.0 protocol.
3) And what about KeepAlive - can one swith it on/off in mathopd web server?
Best Regards,
Paul