[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
Thu Nov 6 10:52:23 CET 2014


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

--- Comment #20 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
(In reply to Martin Renvoize from comment #15)
> Kyle, how did you choose which files to do this for.. it feels like there
> are instances of js files referred to which you've not accounted for?
> 
> I discovered this whilst attempting to find all css files fro a similar
> treatment.
> 
> I've used the following command to regex all css imports within file in the
> templates directory and note that many of my results also contained a JS
> import that hadn't had your treatment applied?
> 
> grep -r -l "<link rel=\"stylesheet\" type=\"text\/css\" href=\"" * | xargs
> sed -i 's/\.css"/_[% KOHA_VERSION %].css"/g'

Regarding this comment.. I'm even more sure we've missed a few places for the
JS's..  We'll definitely need to handle these before applying my follow-up
patch that increases JS cache time.

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


More information about the Koha-bugs mailing list