Re: [squid-users] How to filter response in squid-3.1.x?

2011-10-21 Thread Kaiwang Chen
snip How to configure Squid-3.1.16 behaves as a surrogate conforming to Edge Architecture Specification, in particular Surrogate-Control overriding Cache-Control?  I believe only the following directives were related in squid.conf http_port 80 vhost httpd_accel_surrogate_id

Re: [squid-users] How to filter response in squid-3.1.x?

2011-10-20 Thread Kaiwang Chen
2011/10/20 Amos Jeffries squ...@treenet.co.nz: On Thu, 20 Oct 2011 00:39:32 +0800, Kaiwang Chen wrote: 2011/10/19 Amos Jeffries: On Wed, 19 Oct 2011 05:15:22 +0800, Kaiwang Chen wrote: snip To only change the HTTP headers, there are some tricks you can do with the must-revalidate and/or

Re: [squid-users] How to filter response in squid-3.1.x?

2011-10-20 Thread Amos Jeffries
On 20/10/11 20:11, Kaiwang Chen wrote: 2011/10/20 Amos Jeffriessqu...@treenet.co.nz: On Thu, 20 Oct 2011 00:39:32 +0800, Kaiwang Chen wrote: 2011/10/19 Amos Jeffries: On Wed, 19 Oct 2011 05:15:22 +0800, Kaiwang Chen wrote: snip To only change the HTTP headers, there are some tricks you

Re: [squid-users] How to filter response in squid-3.1.x?

2011-10-20 Thread Ed W
On 20/10/2011 09:11, Amos Jeffries wrote: On 20/10/11 20:11, Kaiwang Chen wrote: So Squid without the adapter will cache one copy of responses in only one encoding. Yes. Will Vary:Accept-Encoding request header enable multiply copies? No. It tells Squid there are multiple variants with

Re: [squid-users] How to filter response in squid-3.1.x?

2011-10-20 Thread Kaiwang Chen
2011/10/20 Amos Jeffries squ...@treenet.co.nz: On 20/10/11 20:11, Kaiwang Chen wrote: 2011/10/20 Amos Jeffriessqu...@treenet.co.nz: On Thu, 20 Oct 2011 00:39:32 +0800, Kaiwang Chen wrote: 2011/10/19 Amos Jeffries: On Wed, 19 Oct 2011 05:15:22 +0800, Kaiwang Chen wrote: snip To only

Re: [squid-users] How to filter response in squid-3.1.x?

2011-10-20 Thread Amos Jeffries
On 21/10/11 08:44, Kaiwang Chen wrote: 2011/10/20 Amos Jeffries: On 20/10/11 20:11, Kaiwang Chen wrote: 2011/10/20 Amos Jeffries: On Thu, 20 Oct 2011 00:39:32 +0800, Kaiwang Chen wrote: 2011/10/19 Amos Jeffries: On Wed, 19 Oct 2011 05:15:22 +0800, Kaiwang Chen wrote: snip while

Re: [squid-users] How to filter response in squid-3.1.x?

2011-10-19 Thread Kaiwang Chen
2011/10/19 Amos Jeffries squ...@treenet.co.nz: On Wed, 19 Oct 2011 05:15:22 +0800, Kaiwang Chen wrote: After a few investigation, I found the statement from http://www.squid-cache.org/Doc/config/ecap_service/:        vectoring_point =

Re: [squid-users] How to filter response in squid-3.1.x?

2011-10-19 Thread Amos Jeffries
On Thu, 20 Oct 2011 00:39:32 +0800, Kaiwang Chen wrote: 2011/10/19 Amos Jeffries: On Wed, 19 Oct 2011 05:15:22 +0800, Kaiwang Chen wrote: snip To only change the HTTP headers, there are some tricks you can do with the must-revalidate and/or proxy-revalidate cache control. These controls

[squid-users] How to filter response in squid-3.1.x?

2011-10-18 Thread Kaiwang Chen
Hello, There is some requirement that squid replaces certain pattern in a HTTP response(assign some cookie, or substitues certain pattern) with something calculated from the response instead of fixed string. Is there any know way to do this? If negative, please points to some further reading for

Re: [squid-users] How to filter response in squid-3.1.x?

2011-10-18 Thread Luis Daniel Lucio Quiroz
2011/10/18 Kaiwang Chen kaiwang.c...@gmail.com: Hello, There is some requirement that squid replaces certain pattern in a HTTP response(assign some cookie, or substitues certain pattern) with something calculated from the response instead of fixed string. Is there any know way to do this? If

Re: [squid-users] How to filter response in squid-3.1.x?

2011-10-18 Thread Kaiwang Chen
After a few investigation, I found the statement from http://www.squid-cache.org/Doc/config/ecap_service/: vectoring_point = reqmod_precache|reqmod_postcache|respmod_precache|respmod_postcache This specifies at which point of transaction processing the eCAP

Re: [squid-users] How to filter response in squid-3.1.x?

2011-10-18 Thread Amos Jeffries
On Wed, 19 Oct 2011 05:15:22 +0800, Kaiwang Chen wrote: After a few investigation, I found the statement from http://www.squid-cache.org/Doc/config/ecap_service/: vectoring_point = reqmod_precache|reqmod_postcache|respmod_precache|respmod_postcache This specifies at which