Fossil

View Ticket
Login

View Ticket

2009-03-31
21:42 Ticket [b465b3bc] Stale pages delivered on Opera browser status still Fixed with 1 other change ... (artifact: 7e8e4144 user: anonymous)
17:34 Fixed ticket [b465b3bc]. ... (artifact: 4bcfdeeb user: drh)
17:33
Add cache-control: no-cache to the server reply header. Ticket [b465b3bc2ceef4446b2ae770242ed0968e4dbc68] ... (check-in: c3a30a6b user: drh tags: trunk)
2009-03-30
19:45 Open ticket [b465b3bc]: Stale pages delivered on Opera browser ... (artifact: 93672180 user: anonymous)
19:44 Ticket [b465b3bc]: 2 changes ... (artifact: 76ae4b17 user: anonymous)
2009-03-29
22:28 Fixed ticket [b465b3bc]. ... (artifact: eabd2b90 user: drh)
22:24
Use "no-store" in place of "private" as the cache-control mode. Ticket [b465b3bc2ceef4446b2ae770242ed0968e4dbc68]. ... (check-in: 5ffc7201 user: drh tags: trunk)
2009-03-28
16:09 New ticket [b465b3bc] Stale pages delivered on Opera browser. ... (artifact: d301f397 user: anonymous)

Ticket Hash: b465b3bc2ceef4446b2ae770242ed0968e4dbc68
Title: Stale pages delivered on Opera browser
Status: Fixed Type: Code_Defect
Severity: Severe Priority:
Subsystem: Resolution: Fixed
Last Modified: 2009-03-31 21:42:12
Version Found In: 26ab4f7012
Description:
The fossil web server uses the "Cache-Control: private" directive to avoid storing the data on intermediate proxies. It does not use other directives to keep the browser from caching the data. At least on the Opera browser this leads to the browser returning stale pages. According to RFC 2616 the private cache control allows the browser to cache the pages:

See the RFC:

private Indicates that all or part of the response message is intended for a single user and MUST NOT be cached by a shared cache. This allows an origin server to state that the specified parts of the response are intended for only one user and are not a valid response for requests by other users. A private (non-shared) cache MAY cache the response.

Therefore I suggest to use one of the usual methods like No-cache etc. maybe in addition to the private.

Without this change fossil is unusable from at least the Opera browser.


drh added on 2009-03-29 22:28:34:
Check-in [5ffc720194fc76a3c913339af5228c692b666791] changes the "private" cache-control setting to "no-store", which is what we should be using, if http://www.mnot.net/cache_docs/ is correct.


anonymous added on 2009-03-30 19:44:51:
Thanks for the very quick. But it still does not work. The best solution would be to use "Cache-Control: no-cache, no-store", I believe.

The no-store directive until tells the browser not to store it on disk. But it still may cache it in memory. That's what Opera does. I tested it with the above settings and it works fine.


drh added on 2009-03-31 17:34:20:
Suggested change made by check-in [c3a30a6b80e2157db5f3ae526db989367f412117]. I don't have Opera so I have no way to test it. But the change works on Firefox.


anonymous added on 2009-03-31 21:42:12:
Tested with Opera, works like a charm, now. Thanks!