Does the expires directive add the head if the Expire head not exist?

Igor Sysoev is at rambler-co.ru
Tue Aug 19 12:27:47 MSD 2008


On Mon, Aug 18, 2008 at 03:18:23PM +0800, Delta Yeh wrote:

> I use nginx  as a pure reverse proxy.
> I think set the Expires header according to the response Content-Type
> is more resonable than the request uri in this scenario.
> 
> Do you have any plan to  add the directive like
> 
>   proxy_set_expires  text/css 30d

Yes, it may be added, but in form "expires  text/css image/gif 30d".


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list