Optimise the loading

Hello,

Into:
stat/core/Piwik.php
public function serveStaticFile($file, $contentType, $expireFarFuture = true)
I have do:
//self::overrideCacheControlHeaders(‘public’);
@header(‘Cache-Control:max-age=31536000’);
@header(‘Pragma: cache’);
That’s do a clear advantage on 3g internet connexion like mine (with latency). (10s -> 1s).

You should considere use it.

can you please post exact patch you apply and what bug it fixes ?

When I was on windows XP i was using super copier so thank you :slight_smile:

Hello,

That’s fix the heavy load time for slow internet by drop browser wait the ‘304 Not Modified’ to continue to load the page.
http://files.first-world.info/temp/piwik-loading.patch
You should to consider read this:
http://ultracopier-wiki.first-world.info/wiki/Theoretical_css_grouping_on_site_web
To optimise piwik loading.

Cheer,