﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	uname	nginx_version
113	Add apache ExpiresByType equivalent functionality	thermal7.myopenid.com	somebody	"Add apache ExpiresByType equivalent functionality. The closest thing in nginx at the moment is:

{{{
    # CSS and Javascript
    location ~* \.(?:css|js)$ {
      expires 1Y;
      access_log off;
      add_header Cache-Control ""public"";
    }
}}}

which is not ideal as the content type is a more reliable way to identify the type of a file. For example http://clientdependency.codeplex.com/ results in a URI of something like /DependcyHandler.axd?asfasdkfjashdfkashdfjkhasdk

I think this would best be done by something like

{{{
    # CSS and Javascript
    content_type text/css, text/javascript {
      expires 1Y;
      access_log off;
      add_header Cache-Control ""public"";
    }
}}}

or

{{{
    # CSS and Javascript
    for_header ""content-type"" > text/css, text/javascript {
      expires 1Y;
      access_log off;
      add_header Cache-Control ""public"";
    }
}}}"	enhancement	closed	minor		nginx-core	1.0.x	fixed			not applicable	not applicable
