RE: [squid-users] [Problem Solved] Re: Squid didn't cache, but forwarding did work

From: Volker-Yoblick, Adam <avolker_at_ea.com>
Date: Fri, 22 Apr 2011 06:46:23 -0700

You can ignore no-cache (and other header options that prevent caching) by adding the following to your refresh pattern:

        override-expire override-lastmod ignore-reload ignore-no-cache ignore-private

You can research what each of these options do, but ignore-no-cache would fix your immediate issue.

-----Original Message-----
From: Henry Yuan [mailto:forwardmy_at_gmail.com]
Sent: Thursday, April 21, 2011 8:33 PM
To: Amos Jeffries
Cc: squid-users_at_squid-cache.org
Subject: Re: [squid-users] [Problem Solved] Re: Squid didn't cache, but forwarding did work

Problem solved.

Reason: CURLput "no-cache" in the http header by default, therefore squid didn't cache the content.
Solution: It seems to be possible to configure CURL's http header by hand, but I chose to use wget program in stead of CURL, which is much simpler to do.

-Henry

On Tue, Apr 19, 2011 at 7:11 PM, Amos Jeffries <squid3_at_treenet.co.nz> wrote:
> On Tue, 19 Apr 2011 15:50:48 -0500, Henry Yuan wrote:
>>
>> Does the http packets need to have some explicit cache header to make
>> it be cached?
>
> Default is to cache. There are headers which prevent caching though.
> They come from both the server and the client.
>
> You can use http://redbot.org to scan the server for what its allowing
> to happen to a URL. You will need to check what headers curl is
> sending (dumping them back into the page by the server is the easy
> way) IIRC it used to send one preventing anything from being stored.
>
> Amos
>
>
Received on Fri Apr 22 2011 - 13:46:33 MDT

This archive was generated by hypermail 2.2.0 : Fri Apr 22 2011 - 12:00:03 MDT