Make urls unique since it still caches them somehow
This commit is contained in:
parent
1775a13378
commit
92aee41594
@ -234,7 +234,7 @@ function downloadfiles(popup, files, callback)
|
|||||||
|
|
||||||
local filename = files[index][1]
|
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))
|
text:setText(string.format("Downloading file [%i/%i]\n%s", index, #files, filename))
|
||||||
|
|
||||||
if (filename == game:binaryname()) then
|
if (filename == game:binaryname()) then
|
||||||
@ -287,8 +287,9 @@ function tryupdate(autoclose)
|
|||||||
|
|
||||||
local text = popup:getchildren()[7]
|
local text = popup:getchildren()[7]
|
||||||
local file = game:environment() == "develop" and "files-dev.json" or "files.json"
|
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
|
if (not valid) then
|
||||||
text:setText("Update check failed: Invalid server response")
|
text:setText("Update check failed: Invalid server response")
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user