Skip to content

Commit

Permalink
Ensure no cache for IE
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Sep 8, 2020
1 parent aaea117 commit 18bd6be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/ux/src/models/Patch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
1 change: 1 addition & 0 deletions control/http-handler-patches.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 18bd6be

Please sign in to comment.