1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-14 11:31:51 +00:00

Add parameter to help with cache

This commit is contained in:
Ycarus (Yannick Chabanois) 2021-06-24 17:11:08 +02:00
parent c804cd3b8f
commit 1afd649652

View file

@ -164,7 +164,7 @@ function upgrade_check() {
hide("#status_box");
hide("#server_div");
set_status("info", _("Searching for upgrades"), true);
fetch(data.url + "/api/versions")
fetch(data.url + "/api/versions?v=" + Date.now())
.then(response => response.json())
.then(response => {
var branches = response["branches"]
@ -348,7 +348,7 @@ function download_image() {
}
function server_request() {
fetch(data.url + "/api/build", {
fetch(data.url + "/api/build?v=" + Date.now(), {
method: 'POST',
headers: {
'Content-Type': 'application/json'