durusmail: quixote-users: proposition for a better Browser caching mechanism
proposition for a better Browser caching mechanism
2005-05-15
2005-05-17
2005-05-17
2005-05-19
2005-05-22
proposition for a better Browser caching mechanism
Quinn Dunkan
2005-05-17
On 5/17/05, vincent delft  wrote:
> I think that all python webservers that send http
> headrs will be able to do it.
>
> The problem is more on the browser side... Are they
> ready to interpret correctly "Cache-control".

Here's what I have in my start_request for all of my quixote apps:

                # I really don't want them to cache the page
                req.response.set_header('pragma', 'no-cache')
                req.response.set_header('cache-control', 'no-cache')
                req.response.set_header('expires', '-1')

I didn't want to waste time figuring out what browsers misimplemented
which redundant http header in which broken way and many supposedly
modern ones do surprisng things.  I suggest that any general-purpose
quixote cache setting function use all three all the time.
reply