What is mod_headers

The mod_headers provides directives to control and modify HTTP request and response headers. Headers can be merged, replaced or removed.

For example i want to set Cache-control: public,s-maxage=7776000 header for every image that is served by Apache, so that these images can be cached by a proxy server for all the users for three months, so this is what i have to add to my httpd.conf file


<FilesMatch "\.(gif|jpg|jpeg|png|swf)$">
Header append Cache-Control "public,s-maxage=7776000"
</FilesMatch>


After doing that when i try accessing a static image from Http Server this is what i get

No comments: