Re: [squid-users] Can I create a regex ACL to not cache certain MIME types?

From: Robert Collins <[email protected]>
Date: 18 Oct 2002 09:14:49 +1000

On Fri, 2002-10-18 at 05:34, Joseph Solinsky wrote:

> I realize I could probably write an acl for file extensions, but it seems
> to me more reliable to use MIME types. There are some operating systems
> which don't use DOS file naming conventions, for example.
> Could someone discuss a bit further how the req_mime_type is to be used?

You can *only* check MIME types for replies when the reply headers have
been recieved. The redirector interface only applies to requests. Thus,
you can not redirect based on reply mime type.

The req_mime_type examines the HTTP request headers, which are set by
the client. The headers you want to examine in are the Reply - see
above.

Rob

Received on Thu Oct 17 2002 - 17:14:52 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:10:44 MST