1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +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("#status_box");
hide("#server_div"); hide("#server_div");
set_status("info", _("Searching for upgrades"), true); 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 => response.json())
.then(response => { .then(response => {
var branches = response["branches"] var branches = response["branches"]
@ -348,7 +348,7 @@ function download_image() {
} }
function server_request() { function server_request() {
fetch(data.url + "/api/build", { fetch(data.url + "/api/build?v=" + Date.now(), {
method: 'POST', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json' 'Content-Type': 'application/json'