Re: [squid-users] purge domain / more flexible purge ?

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sun, 29 Jun 2008 22:48:42 +1200

Jeff Peng wrote:
> On Sat, Jun 28, 2008 at 11:40 PM, Roy M. <setesting001_at_gmail.com> wrote:
>
>> You have a blog application, and use Squid as reverse proxy to cache
>> the dynamic pages.
>>
>
> How do you cache the dynamic pages? ignore Cache-Control: private
> headers or something like that?

No. Squid will cache dynamic pages the same as static ones. Most dynamic
pages don't have private set. Just short max-ages or no cache-controls
at all.

The biggest obstacle is old legacy entries in squid.conf from the days
when dynamic pages were very cache-unfriendly.

  - Drop the QUERY acl
  - Drop the cache lines that use QUERY
  - Add "refresh_pattern (/cgi-bin/|\?) 0 0% 0" just above the final "."
refresh_pattern.

Squid should now happily cache dynamic pages according to RFC2616.

Amos

-- 
Please use Squid 2.7.STABLE3 or 3.0.STABLE7
Received on Sun Jun 29 2008 - 10:48:47 MDT

This archive was generated by hypermail 2.2.0 : Sun Jun 29 2008 - 12:00:06 MDT