3 messages in com.googlegroups.pylons-discussRe: Understanding caching
FromSent OnAttachments
Mike Orr15 Oct 2007 18:06 
Philip Jenvey17 Oct 2007 16:19 
Ben Bangert17 Oct 2007 16:35 
Subject:Re: Understanding caching
From:Ben Bangert (ben-@public.gmane.org)
Date:10/17/2007 04:35:20 PM
List:com.googlegroups.pylons-discuss

On Oct 17, 2007, at 4:20 PM, Philip Jenvey wrote:

Right, Cache-Control: max-age should tell the browser that it doesn't have to re-request the file. This is similar to the Expires header.

We didn't want to include a Pragma header in the default headers, but we ended up including it last minute for what I thought was IE. Though the commit says it was for HTTP 1.0 caches/proxies:

http://pylonshq.com/project/pylonshq/changeset/1088%3A07a7ea7eeb79/ pylons/configuration.py

Maybe Ben can elaborate.

IE, depending on the version looks at a Pragma, in addition to HTTP 1.0 caches/proxies. The HTTP spec appears to say it should be included to ensure the HTTP 1.0 cache/proxies don't cache it... which seemed more authoritative than the various reports from people saying, "IE works without it... no wait, it doesn't, does it?" etc. :)

Cheers, Ben