trafficserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sudheer Vinukonda <sudhe...@yahoo-inc.com>
Subject Re: Add header based on filetype
Date Fri, 16 Oct 2015 16:44:49 GMT
I presume you want to add it to the response headers. 
Something like the below should work:
cond %{SEND_RESPONSE_HDR_HOOK} [AND]cond %{PATH} /(.js)|(.css)/add-header JS_OR_CSS 1 [L]
Thanks,
Sudheer

     On Friday, October 16, 2015 5:44 AM, Ram Chander <ramquick@gmail.com> wrote:
   

 Hi,

I want to add a header for css/js files. How to do that in header.config  ?
Thanks. Below adds the header for all filetypes. 


add-header Key Val 


head


  
Mime
View raw message