Fossil SCM

Browser caching CSS and logo

Closed

71bd5502ffc43a4… · opened 15 years, 8 months ago

Type
Feature_Request
Priority
Severity
Minor
Resolution
Fixed
Subsystem
Created
July 16, 2010 8:59 a.m.

Hello,

When using fossil ui on a repository, and then on another one, using same port, the logo and the stylesheet for the first repository are still in browser cache, and therefore the browser is not displaying what it should.

Proposed workaround: * Each time the logo or the stylesheet changes, compute its new SHA1 sum * Embed URIs of this form in the HTML code: $baseurl/logo/{LOGO_SHA1SUM} or $baseurl/style.css/{STYLESHEET_SHA1SUM} * On client side (browser) each logo and stylesheet will be cached, but every time a change is needed it is automatic * On server side, optionally ignore the /SHA1SUM part in the URL, and always serve current logo and stylesheet as the previous ones are not stored.


anonymous added on 2010-07-19 11:29:33:
I think it would be wiser to not ignore the sum but serve only the URL with the correct checksum if checksummed URL is requested.

If the checksum was ignored and you changed the repo which is served on a particular address (either by editing the repo or by changing some redirection) then the new style could be cached on an URL referenced from an old page which is exactly what is to be avoided.

Comments (1)

jan.nijtmans 12 years, 3 months ago

Fixed in [daff9d2062]

Keyboard Shortcuts

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