[Koha-bugs] [Bug 12904] Force browser to load new javascript files after upgrade

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Mar 6 11:38:43 CET 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12904

--- Comment #70 from Olli-Antti Kivilahti <olli-antti.kivilahti at jns.fi> ---
Rebased to master.

(In reply to Jonathan Druart from comment #65)
> Can you explain this patch?

Yes.
Without this bad things will happen when caching is used.

Our page load times drop at best 2-4 seconds depending on the env we run Koha.
Better than plack :)


When the Koha-version changes, the urls for all static web-assets dynamically
change to point at the new Koha-version.
This forces the browser to reload new versions of javascript-code.

You cannot really cache static web-content without a way of invalidating the
user's cache, because then after version upgrades, some browsers would use old
javascript code and bad things would happen.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list