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:
http://forum.nginx.org/read.php?2,6705,6705#msg-6705

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs