Re: additional headers
n n <[email protected]>
| Newsgroups | gmane.network.tux |
|---|---|
| Message-ID | <[email protected]> |
> I am using TUX as web server for the images. > My web developer wants to add some additional > headers in the tux output like > "Expires: Mon, 15 Nov 2004 05:00:00 GMT". Is it > possible? Yes. Best practices for this type of cache control are as follows: 1) Via webserver: you can do so via server configuration, BUT it will be for *every* page served either on the whole site or via sub-dir. 2) Via http headers: the statements MUST be the first things on the page being served. And I mean the absolute first items PERIOD. Script languages such as PHP, Perl and JSP have functions that will generate the header for you, but again the statements MUST be numero uno on your page. A good resource for this is: http://www.mnot.net/cache_docs/#CONTROL Good luck. __________________________________ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/