[squid-users] How to cache Google search result pages?

From: <[email protected]>
Date: Tue, 27 Dec 2005 11:02:01 +0100 (CET)

On 27 Dec 2005, Kevin wrote:

> On 12/27/05, Sven wrote:
[...]
> > How can I cache Google search result pages?
>
> Are you sure you want to cache google search results?

Yes, I know its dangers, but I need this for some applications
(fixed order of search hits etc.)

> > Even the following command
[...]
> Google search result URLs include a query string in the URL, and
> return a cookie -- both of these will, in a default Squid, cause the
> proxy to explicitly choose not to cache the data.

1. Query string:
I already replaced
acl QUERY urlpath_regex cgi-bin \?
with
acl QUERY urlpath_regex cgi-bin

2. Cooky:
I suppress all cookies within the HTTP client (web browser).

Is this enough?

> Additionally the google servers mark their pages as uncacheable,
> returning a "Cache-Control: private" header.

This might be the problem. How can I override this?

Sven

Received on Tue Dec 27 2005 - 03:02:06 MST

This archive was generated by hypermail pre-2.1.9 : Sat Dec 31 2005 - 12:00:03 MST