From b35a5c36e097bffaf3e3a918d5de550fead9941c Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 6 Apr 2021 00:24:29 +0200 Subject: Added image caching prevention - fixes #9 --- profile/public/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'profile/public/script.js') diff --git a/profile/public/script.js b/profile/public/script.js index cd22dda..a8dcf9c 100644 --- a/profile/public/script.js +++ b/profile/public/script.js @@ -36,7 +36,7 @@ function appendQuestions(question) { if (question.type === "file" && question.answer) { const img = document.createElement("img"); - img.src = "uploads/" + question.answer; + img.src = "uploads/" + question.answer + "#" + new Date().getTime(); img.alt = "Image"; div.appendChild(img); } -- cgit v1.2.3