Add caching to static assets when served from blob handler.

pull/339/head
Julius Volz 12 years ago
parent 212775bfc4
commit 4e941255d8

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

Loading…
Cancel
Save