[squid-users] How to ignore query terms for store key?

2010-09-03 Thread Guy Bashkansky
Is there a way to ignore URI query terms when forming store keys?
Maybe some rule or extension?

In the Squid code it could look something like:
{ char *p = strchr(uri, '?'); if (p) *p = '\0'; }

But the only code like this deals with strip_query_terms,
which only affects logging, not storing.


Re: [squid-users] How to ignore query terms for store key?

2010-09-03 Thread Amos Jeffries

Guy Bashkansky wrote:

Is there a way to ignore URI query terms when forming store keys?
Maybe some rule or extension?

In the Squid code it could look something like:
{ char *p = strchr(uri, '?'); if (p) *p = '\0'; }

But the only code like this deals with strip_query_terms,
which only affects logging, not storing.


First, please answer: Why? what possible problem could require you to do 
this massive abuse of the web?


storeurl_rewrite

Be EXTREMELY careful about what you re-write. A good understanding of 
how the re-written website operates is needed. Along with complete trust 
that the website will not alter its design (or layout) in any way for 
the lifetime of your config.


Amos
--
Please be using
  Current Stable Squid 2.7.STABLE9 or 3.1.7
  Beta testers wanted for 3.2.0.2