aboutsummaryrefslogtreecommitdiff
path: root/profile/public
diff options
context:
space:
mode:
authorMarvin Borner2021-04-06 00:24:29 +0200
committerMarvin Borner2021-04-06 00:24:29 +0200
commitb35a5c36e097bffaf3e3a918d5de550fead9941c (patch)
tree4f052d92aa47eb927c975952e71974c766da422e /profile/public
parent7440d004f4485ed10b46374d7132af6443bae13e (diff)
Added image caching prevention - fixes #9
Diffstat (limited to 'profile/public')
-rw-r--r--profile/public/script.js2
1 files changed, 1 insertions, 1 deletions
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);
}