Search squid archive

Problem using rep_mime_type with 'cache' tag

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I am trying to configure Squid 3.1.4 (the latest version) to NOT cache response mime type application/vnd.ogc.se_xml (from Geoserver), and cache everything else. The relevant tags in my squid.conf looks like this:

acl acl_wms_xml_error rep_mime_type -i ^application/vnd.ogc.se_xml$ cache deny acl_wms_xml_error

However, Squid still caches it, and this is in the cache.log:

2010/07/29 16:14:25.447| ACLChecklist::preCheck: 0xb83d58 checking 'cache deny acl_wms_xml_error'
2010/07/29 16:14:25.447| ACLList::matches: checking acl_wms_xml_error
2010/07/29 16:14:25.447| ACL::checklistMatches WARNING: 'acl_wms_xml_error' ACL is used but there is no HTTP reply -- not matching.
2010/07/29 16:14:25.447| ACLList::matches: result is false
2010/07/29 16:14:25.447| aclmatchAclList: 0xb83d58 returning false (AND list entry failed to match)
2010/07/29 16:14:25.447| aclmatchAclList: async=0 nodeMatched=0 async_in_progress=0 lastACLResult() = 0 finished() = 0
2010/07/29 16:14:25.447| Checklist.cc(124) check: 0xb83d58 NO match found, returning 1

It seems that when Squid does the check on 'cache deny acl_wms_xml_error', it has not even call the content server yet, so there is no HTTP reply and hence no rep_mime_type value. How do you use the 'cache' tag to NOT to cache a response mime type? I did not want to use http_reply_access because I still want Squid to return the content to the user, but just not cache it.

Thanks.
Roy
****************************************************************************************** 
This message may contain confidential or proprietary information intended only for the use of the 
addressee(s) named above or may contain information that is legally privileged. If you are 
not the intended addressee, or the person responsible for delivering it to the intended addressee, 
you are hereby notified that reading, disseminating, distributing or copying this message is strictly 
prohibited. If you have received this message by mistake, please immediately notify us by  
replying to the message and delete the original message and any copies immediately thereafter. 

Thank you. 
****************************************************************************************** 
CLLD




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux