Skip to content

Commit e2961be

Browse files
committed
feat(serverHandler/assert): add cache policy for asserts
1 parent c0d32b0 commit e2961be

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/serverHandler/assert.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ func (h *handler) assert(w http.ResponseWriter, r *http.Request, assertPath stri
1616

1717
header := w.Header()
1818
header.Set("Content-Type", content.ContentType)
19+
header.Set("Cache-Control", "public, max-age=3600")
1920
if needResponseBody(r.Method) {
2021
http.ServeContent(w, r, assertPath, initTime, content.ReadSeeker)
2122
}

0 commit comments

Comments
 (0)