ExpiresByType

Hi,

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

Something similar to Apache’s “ExpiresByType”:
http://httpd.apache.org/docs/2.0/mod/mod_expires.html#expiresbytype

Thanks,
Michael

Posted at Nginx Forum:

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 D.