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

From: Roy M. <setesting001_at_gmail.com>
Date: Mon, 30 Jun 2008 10:43:08 +0800

On 6/29/08, Jeff Peng <peng.kyo_at_gmail.com> wrote:
> How do you cache the dynamic pages? ignore Cache-Control: private
> headers or something like that?
>

The method which is used by wikipedia is cache all dynamic pages as
long as possible, but when user update, purge from it.

Example HTTP response:

Status=OK - 200
Date=Sun, 29 Jun 2008 13:59:17 GMT
Server=Apache
X-Powered-By=PHP/5.2.1
Cache-Control=private, s-maxage=0, max-age=0, must-revalidate
Content-Language=en
Vary=Accept-Encoding,Cookie
X-Vary-Options=Accept-Encoding;list-contains=gzip,Cookie;string-contains=enwikiToken;string-contains=enwikiLoggedOut;string-contains=enwiki_session;string-contains=centralauth_Token;string-contains=centralauth_Session;string-contains=centralauth_LoggedOut
Last-Modified=Sun, 29 Jun 2008 13:58:08 GMT
Content-Encoding=gzip
Content-Length=15289
Content-Type=text/html; charset=utf-8
Age=45672
X-Cache=HIT from sq27.wikimedia.org, MISS from sq23.wikimedia.org
X-Cache-Lookup=HIT from sq27.wikimedia.org:3128, MISS from sq23.wikimedia.org:80
Via=1.0 sq27.wikimedia.org:3128 (squid/2.6.STABLE18), 1.0
sq23.wikimedia.org:80 (squid/2.6.STABLE18)
Connection=keep-alive

Their usage is simpler as they only need to purge per page, but most
common apps would need to purge per channel as Mark (Yahoo!) pointed
out.

Thanks.
Received on Mon Jun 30 2008 - 02:43:11 MDT

This archive was generated by hypermail 2.2.0 : Mon Jun 30 2008 - 12:00:05 MDT