Squid parent cache for text/html only

Posted by Salvador on Server Fault See other posts from Server Fault or by Salvador
Published on 2010-03-20T18:11:19Z Indexed on 2010/03/20 20:21 UTC
Read the original article Hit count: 475

Filed under:
|

How do I configure the squid to only request text/html to the parent cache; right now I am using : cache_peer 127.0.0.1 parent 8080 0 no-query no-digest

on the second hand I get a lot of direct request that do not use the parent proxy: some queries go like FIRST_UP_PARENT and some like DIRECT, how do I tell the squid to always use parent for text/html

BTW .. is a transparent proxy

I have tried :

cache_peer 127.0.0.1 parent 8080 0 no-query no-digest
acl elhtml req_mime_type -i ^text/html$
acl elhtml req_mime_type -i text/html
cache_peer_access 127.0.0.1 allow elhtml
cache_peer_access 127.0.0.1 deny all

and it does not works

Thanks in advance for the help.

© Server Fault or respective owner

Squid parent cache for text/html only

Posted by Salvador on Stack Overflow See other posts from Stack Overflow or by Salvador
Published on 2010-03-20T18:11:19Z Indexed on 2010/03/20 19:01 UTC
Read the original article Hit count: 475

Filed under:
|

How do I configure the squid to only request text/html to the parent cache; right now I am using : cache_peer 127.0.0.1 parent 8080 0 no-query no-digest

on the second hand I get a lot of direct request that do not use the parent proxy: some queries go like FIRST_UP_PARENT and some like DIRECT, how do I tell the squid to always use parent for text/html

BTW .. is a transparent proxy

I have tried :

cache_peer 127.0.0.1 parent 8080 0 no-query no-digest
acl elhtml req_mime_type -i ^text/html$
acl elhtml req_mime_type -i text/html
cache_peer_access 127.0.0.1 allow elhtml
cache_peer_access 127.0.0.1 deny all

and it does not works

Thanks in advance for the help.

© Stack Overflow or respective owner

Related posts about squid

Related posts about linux