diff --git a/app/ux/src/models/Patch.js b/app/ux/src/models/Patch.js index afb9d1c..4aeca8e 100644 --- a/app/ux/src/models/Patch.js +++ b/app/ux/src/models/Patch.js @@ -133,7 +133,7 @@ class Patch { function load(syncConfig, offset = 0, limit = 10) { const syncUuid = syncConfig.Uuid; const url = buildUrl('/patches/' + syncUuid + '/' + offset + '/' + limit); - return window.fetch(url, { + return window.fetch(url + '?r=' + Math.random(), { method: 'GET', headers: { 'Content-Type': 'application/json' diff --git a/control/http-handler-patches.go b/control/http-handler-patches.go index 6729aae..f1963f4 100644 --- a/control/http-handler-patches.go +++ b/control/http-handler-patches.go @@ -109,6 +109,7 @@ func (h *HttpServer) listPatches(c *gin.Context) { for _, p := range patches { data[fmt.Sprintf("%d", p.GetStamp().Unix())] = p } + c.Header("Cache-Control", "no-cache, no-store") c.Header("Pragma", "no-cache") c.JSON(http.StatusOK, data)