Skip to content
Snippets Groups Projects
Commit d5331b57 authored by Kevin Abel's avatar Kevin Abel
Browse files

Merge branch '4.1' into 'master'

4.1

Add cache busting

Search was broken for those that had older versions of the assets cached.

See merge request !7
parents a208ced8 95965017
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ function loadDefaultSections($page)
$isEmbed = isset($_GET['embed']) && $_GET['embed'];
$localScriptUrl = './js/search.min.js';
$localScriptUrl = './js/search.min.js?v=4.1';
$pageTemplate = 'Fixed';
if (UNL_Search::$mode === 'debug') {
......@@ -52,7 +52,7 @@ if (!$isEmbed) {
$localResults = '';
$context = '';
$page->addStyleSheet('css/search.css');
$page->addStyleSheet('css/search.css?v=4.1');
//u is referring site
if (isset($_GET['u']) && $scanned = UNL_Search::getScannedPage($_GET['u'])) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment