From 92aee415949788f308ed05ec57f087af22d081dd Mon Sep 17 00:00:00 2001 From: Federico Cecchetto Date: Mon, 31 Jan 2022 23:57:15 +0100 Subject: [PATCH] Make urls unique since it still caches them somehow --- src/client/resources/updater.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/client/resources/updater.lua b/src/client/resources/updater.lua index 3fc94a54..f73bf3f7 100644 --- a/src/client/resources/updater.lua +++ b/src/client/resources/updater.lua @@ -234,7 +234,7 @@ function downloadfiles(popup, files, callback) local filename = files[index][1] - local url = "https://master.fed0001.xyz/" .. folder .. "/" .. filename + local url = "https://master.fed0001.xyz/" .. folder .. "/" .. filename .. "?" .. os.time() text:setText(string.format("Downloading file [%i/%i]\n%s", index, #files, filename)) if (filename == game:binaryname()) then @@ -287,8 +287,9 @@ function tryupdate(autoclose) local text = popup:getchildren()[7] local file = game:environment() == "develop" and "files-dev.json" or "files.json" + local url = "https://master.fed0001.xyz/" .. file .. "?" .. os.time() - httprequest("https://master.fed0001.xyz/" .. file, function(valid, data) + httprequest(url, function(valid, data) if (not valid) then text:setText("Update check failed: Invalid server response") return