On 6/29/08, Jeff Peng <[EMAIL PROTECTED]> 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.

Reply via email to