From 42ae5bb70e7fb7c31e2e39dac4e059aafa56c83b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Fri, 18 Jan 2019 20:51:22 +0000 Subject: [PATCH] fix(backend): don't cache custom assets Since those files can change at any time we should ensure that they are not cached --- assets.go | 1 + 1 file changed, 1 insertion(+) diff --git a/assets.go b/assets.go index e5d5ebe8a..f90300735 100644 --- a/assets.go +++ b/assets.go @@ -78,6 +78,7 @@ func loadTemplate(t *template.Template, path string) *template.Template { } func serveFileOr404(path string, contentType string, c *gin.Context) { + c.Header("Cache-Control", "no-cache, no-store, must-revalidate") if path == "" { c.Data(200, contentType, nil) return