From 4e941255d8ac4bf858c257d27bb4e635c2ef20eb Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Wed, 24 Jul 2013 18:52:57 +0200 Subject: [PATCH] Add caching to static assets when served from blob handler. --- web/blob/blob.go | 1 + 1 file changed, 1 insertion(+) diff --git a/web/blob/blob.go b/web/blob/blob.go index 2edd278b9f..6a6981e92b 100644 --- a/web/blob/blob.go +++ b/web/blob/blob.go @@ -61,5 +61,6 @@ func (h Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { contentType = mimeMap[parts[len(parts)-1]] } w.Header().Set("Content-Type", contentType) + w.Header().Set("Cache-Control", "public, max-age=259200") w.Write(file) }