@@ -, +, @@ upgrade through the installation process on an empty database. Network panel) and turn on the filter for JavaScript files. Circulation. In Firebug the Net panel should show a status of "200 OK" for all files, indicating that the file was downloaded, not loaded from the cache. In Chrome the "size" column will show a file size if the file was downloaded. from the cache: Scripts like jquery.js and jquery-ui.js which are loaded on every page should have a status in the Firebug Net panel of "304 Not Modified." In Chrome the "size" columns should show "from cache." testing, open a different browser from the one you were previously testing with, load Koha, and run through the database update. page. Firebug's Net panel should show that script files are now being downloaded with a "koha_version" query string. These files should have a status of "200 OK" indicating that they are being downloaded, not loaded from the cache. scripts are being loaded from the cache. - Administration -> Currencies and exchange rates (jquery.dataTables.colvis.js) - Tools -> Stage MARC records for import (ajaxfileupload.js) or another page which performs a file upload. - Catalog -> Detail page -> MARC Preview (greybox JS) - Help -> Any help page - Any page which loads DataTables (Circulation in the staff client, for instance, and a title's detail page in the OPAC) - Bonus points if you check the various conditional JS includes controlled by the many OPAC feature preferences --- debian/templates/apache-shared-intranet.conf | 2 ++ debian/templates/apache-shared-opac.conf | 2 ++ debian/templates/apache-shared.conf | 4 ++-- etc/koha-httpd.conf | 5 ++++- 4 files changed, 10 insertions(+), 3 deletions(-) --- a/debian/templates/apache-shared-intranet.conf +++ a/debian/templates/apache-shared-intranet.conf @@ -17,6 +17,8 @@ RewriteRule (.+) $1?%1%2 [N,R,NE] RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/detail\.pl?bib=$1 [PT] RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT] RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT] +RewriteRule ^(.*)_(.*).js$ $1.js [R=301,N,L] +RewriteRule ^(.*)_(.*).css$ $1.css [R=301,N,L] Alias "/api" "/usr/share/koha/api" --- a/debian/templates/apache-shared-opac.conf +++ a/debian/templates/apache-shared-opac.conf @@ -17,6 +17,8 @@ RewriteRule (.+) $1?%1%2 [N,R,NE] RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/opac-detail\.pl?bib=$1 [PT] RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT] RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT] +RewriteRule ^(.*)_(.*).js$ $1.js [R=301,N,L] +RewriteRule ^(.*)_(.*).css$ $1.css [R=301,N,L] = 2.4> AliasMatch "^/sitemap(.*)" "/var/lib/koha/${instance}/sitemap/sitemap$1" --- a/debian/templates/apache-shared.conf +++ a/debian/templates/apache-shared.conf @@ -58,8 +58,8 @@ SetEnv PERL5LIB "/usr/share/koha/lib" ExpiresActive on - ExpiresByType text/css "access plus 12 hours" - ExpiresByType application/javascript "access plus 12 hours" + ExpiresByType text/css "access plus 60 days" + ExpiresByType application/javascript "access plus 60 days" ExpiresByType image/png "access plus 12 hours" ExpiresByType image/gif "access plus 12 hours" --- a/etc/koha-httpd.conf +++ a/etc/koha-httpd.conf @@ -112,6 +112,8 @@ RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/opac-detail\.pl?bib=$1 [PT] RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT] RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT] + RewriteRule ^(.*)_(.*).js$ $1.js [R=301,N,L] + RewriteRule ^(.*)_(.*).css$ $1.css [R=301,N,L] # REST API configuration Alias "/api" "__API_CGI_DIR__" @@ -230,7 +232,8 @@ RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/detail\.pl?bib=$1 [PT] RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT] RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT] - + RewriteRule ^(.*)_(.*).js$ $1.js [R=301,N,L] + RewriteRule ^(.*)_(.*).css$ $1.css [R=301,N,L] # REST API configuration Alias "/api" "__API_CGI_DIR__" --