Hi<br><div class="gmail_quote"><div><br></div><div>I need to add expires headers conditionally based on a certain mime type.</div><div>For example add expires 7d to text/css</div><div><br></div><div>How to do this ?</div><div>
<br></div><div>So far I found that $sent_http_content_type contains the mime type that is send in http response. But its not possible to put it in a if directive and do expires</div>
<div>either, </div><div><br></div><div>if ($sent_http_content_type = "text/css")</div><div>{</div><div>expires 7d;</div><div>}<br clear="all"><div><br></div><div>will not work.</div><div><br></div><div>Also tried to create a map and try to hack around, but could not do it.</div>

<div><br></div><div>I cannot do on file based or specific directory location based because lots of css/js content is generated from php files dynamically. And there are multiple php files generating content.</div><div><br>

</div><div>I need a neat way to implement this, is it possible ?</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>-- </div></font></span></div></div>Silver<br>