From 54acf35c69b36d3bc65930b0706e85db9a47b8f4 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Fri, 2 Jul 2021 14:46:22 +0200 Subject: [PATCH] Revert "js: Don't bypass our cache when reloading CSS" This reverts commit 1c7e5b31bfaf83517edfbf33abb59cd291a43413. fixes #4417 refs #4340 --- public/js/icinga/ui.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/js/icinga/ui.js b/public/js/icinga/ui.js index 7c4815228..972bc88c2 100644 --- a/public/js/icinga/ui.js +++ b/public/js/icinga/ui.js @@ -112,7 +112,10 @@ if ($oldLink.hasAttr('type') && $oldLink.attr('type').indexOf('css') > -1) { var $newLink = $oldLink.clone().attr( 'href', - $(this).attr('href') + icinga.utils.addUrlParams( + $oldLink.attr('href'), + { id: new Date().getTime() } // Only required for Firefox to reload CSS automatically + ) ).on('load', function() { $oldLink.remove(); });