ExpiresByType

Maxim Dounin mdounin at mdounin.ru
Sun Sep 13 14:57:31 MSD 2009


Hello!

On Sun, Sep 13, 2009 at 06:30:12AM -0400, gogobu wrote:

> Hi,
> 
> Is there any way to configure nginx to set the expiration based on the mime type?

No.  You have to use separate locations with different expires set.

Maxim Dounin

> 
> Something similar to Apache's "ExpiresByType": http://httpd.apache.org/docs/2.0/mod/mod_expires.html#expiresbytype
> 
> Thanks,
> Michael
> 
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,6705,6705#msg-6705
> 
> 





More information about the nginx mailing list