Bug 20259: Shorter JS and CSS rewrite rule
authorFridolin Somers <fridolin.somers@biblibre.com>
Wed, 21 Feb 2018 10:07:56 +0000 (11:07 +0100)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 22 Jun 2018 13:30:46 +0000 (13:30 +0000)
commit9b39b9d20b828adf9504b9681b2bee4ca751cc5d
tree164c39d0ec94255a612c17172b3a670f3cc018c1
parent2e1ff5e96108af91174d080b49e31d78a8f959fa
Bug 20259: Shorter JS and CSS rewrite rule

Bug 20187 has changed the JS and CSS rewrite rules to :
RewriteRule ^(.*)_[0-9][0-9]\.[0-9][0-9][0-9][0-9][0-9][0-9][0-9].js$ $1.js [L]
RewriteRule ^(.*)_[0-9][0-9]\.[0-9][0-9][0-9][0-9][0-9][0-9][0-9].css$ $1.css [L]

This patch changes this rules using [0-9]{N} and fusion in one rule.
And espaces the dot in extension js and css.

Test plan :
1) Go to intranet and opac
2) Check CSS and JS are doing well
3) Apply patch changes on our Apache configuration
4) Reload intranet and opac pages (Ctrl + F5)
5) Check CSS and JS are doing well

Signed-off-by: Charles Farmer <charles.farmer@inLibro.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
debian/templates/apache-shared-intranet.conf
debian/templates/apache-shared-opac.conf
etc/koha-httpd.conf