This is a static dump of issues in the old "Flyspray" bugtracker for DokuWiki. Bugs and feature requests
are now tracked at the issue tracker at Github.
FS#802 Cache all css and js using url will save download time
CSS, XHTML, JS, Browsers
A caching feature should be available for css and js.
A wiki page is like 14kb and you need to still add 60kb of compressed css and js for that page to work.
A solution can be to modify the <link> html meta tag to point to the lates css and js cache.
DW already detect if a css or js has changed, but still it sends the same about of data to the browser. A better cache will be to send always the same URL in the <link> meta tag and let the user's browser/proxy decide if that file be downloaded again.
'templates.php:tpl_metaheaders()' 'css.php:css_out()' should be modified:
css_out(): should return the cache file that should be put in the <meta> tag of the html page.
tpl_metaheaders(): should take that file and print in the html page.
The user will se always the same URL in the CSS until the CSS is changed. The user's browser will download
only once the cached css and js, saving MB of download data.
I can take this bug if the procedure is accepted.
I have a patch for css, the patch for js is comming.
Anyone likes this idea?