Header precendence: Apache Vs. PHP specific to cache-control & expires

Posted by David on Server Fault See other posts from Server Fault or by David
Published on 2010-09-29T22:08:15Z Indexed on 2011/01/01 13:55 UTC
Read the original article Hit count: 320

Filed under:
|
|

My companies production dynamic web servers ( Apache + PHP 5.1x) are using the Apache expires module and there is a clause inside http.conf as follows:

<FilesMatch ".+">
ExpiresActive On
ExpiresDefault "A0"
</FilesMatch>

If I were to set inside a php script "Cache-Control" and "Expires", would it get eaten by this clause?

Normally I would test this on my own but having trouble convincing the Expires module to function on my workstation and the company Admin's are down at the data-center.

© Server Fault or respective owner

Related posts about apache

Related posts about php