﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	uname	nginx_version
36	Feature Request - Support Filtering Requests by mimetype	Kory Prince	somebody	"It would be really advantageous to filter requests like we do with location using mimetypes.
As an example:

mimetype image/png {
    expire 3h;
}

Multiple mimetypes:

mimetype image/* text/html {
    404;
}

The main reason to do this is for setting expiry explicitly for different content types.
For now, we rely on using location to specify by extension, but this can be problematic when using cgi, because sometimes the url doesn't contain the extension, and there is no way to separate out content types.

There are, of course, other reasons to do this. Perhaps to deny certain file types from being sent, even when they don't contain a correct (or any) file extension.

Obviously, since we would want this to work for fastcgi, etc, it would have to run *after* we receive the response from upstream.

"	enhancement	closed	minor		other	1.1.x	wontfix	mimetype content-type		N/A	N/A
