Fossil SCM

Stale pages delivered on Opera browser

Fixed

b465b3bc2ceef44… · opened 17 years ago

Type
Code_Defect
Priority
Severity
Severe
Resolution
Fixed
Subsystem
Created
March 28, 2009 4:09 p.m.

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!

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button