Adding HTTP headers to your channel pages

So how do you go about actually adding these headers to your documents? Unfortunately, there is no single answer because it depends on how your pages are being created and how your documents are being served. While I can not really get into full detail on every case, I will cover the most common case, which is using static pages on an Apache Web server.

If you are using a server other than Apache, for implementation information specific to your Web server, be sure to check out Mark Nottingham's caching tutorial at:

[external link] http://www.mnot.net/cache_docs/#IMP-SERVER

If you are a Webmaster, with full access to all the Apache files, the easiest way to control caching is to edit your httpd.conf file (located in your conf directory). Within that file, use a combination of <Location> directives and Header directives to add or remove headers. The location directive allows you to specify the URL of the directory or file you are interested in, while the Header directive specifies what to do with the headers themselves.


Special note for Apache Webmasters
Non-Apache servers