From bugzilla-daemon@bugs.koha-community.org Tue Jan 23 14:33:42 2018
From: bugzilla-daemon@bugs.koha-community.org
To: koha-bugs@lists.koha-community.org
Subject: [Koha-bugs] [Bug 12904] Force browser to load new javascript files
after upgrade
Date: Tue, 23 Jan 2018 13:33:35 +0000
Message-ID:
In-Reply-To:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============7516293575926465587=="
--===============7516293575926465587==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=3D12904
--- Comment #81 from Jonathan Druart ---
(In reply to Katrin Fischer from comment #78)
>=20
> >For non-package installations, the following rewrite rules will need to be=
>added to the apache config file:
> >RewriteRule ^(.*)_(.*).js$ $1.js [R=3D301,N,L]
> >RewriteRule ^(.*)_(.*).css$ $1.css [R=3D301,N,L]
>=20
> Wonder if this might not get lost - would there be a way to automate it?
> What happens if you don't?
We will have to highlight that in the release notes.
People will quickly now that something is wrong if all JS and CSS files return
404
(In reply to Fridolin SOMERS from comment #79)
> > RewriteRule ^(.*)_(.*).js$ $1.js [R=3D301,N,L]
> This rewrite rules are quite large, what about files that already contain an
> underscore ?
> I think we should use a more explicit separator like "_kohav" with rewrite :
> RewriteRule ^(.*)_kohav(.*).js.
>=20
> > +
> The syspref "Version" contains a dot (ie 16.1200037) meaning that files will
> have 2 dots, ie :=20
> ../datatables_16.1200037.js
> This may be a problem for some web-browsers like IE ?
I am going to push these patches soon. Developers will have time to catch the
issues before 18.05.
If someone disagrees with these patches, tell us why.
--=20
You are receiving this mail because:
You are watching all bug changes.
--===============7516293575926465587==--