Merge pull request #374 from prymitive/custom-js-no-cache

fix(backend): don't cache custom assets
This commit is contained in:
Łukasz Mierzwa
2019-01-18 21:31:35 +00:00
committed by GitHub

View File

@@ -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