From b68a7721c62562cbcd3924f5a14b4df85b5b2305 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Mon, 11 Jan 2021 17:23:22 +0100 Subject: [PATCH] add cache buster on security check request When doing a normal reload on the admin page to recheck the security, the browser may not re-request the image again. This adds a timestamp to the URL to ensure the image is tested again --- lib/scripts/behaviour.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/scripts/behaviour.js b/lib/scripts/behaviour.js index 608a29de0..41702fad7 100644 --- a/lib/scripts/behaviour.js +++ b/lib/scripts/behaviour.js @@ -234,7 +234,7 @@ var dw_behaviour = { $checkDiv.html(LANG.data_insecure); $checkDiv.addClass('error'); } - img.src = $checkDiv.data('src'); + img.src = $checkDiv.data('src') + '?t=' + Date.now(); } };