From 9a4791d60a3d255a2cf070a436b358a70c8f8905 Mon Sep 17 00:00:00 2001 From: Rune Madsen Date: Sat, 5 Sep 2015 10:51:07 -0400 Subject: [PATCH] adding cache-control header --- imageproxy.go | 1 + 1 file changed, 1 insertion(+) diff --git a/imageproxy.go b/imageproxy.go index d7d9902..8be6ce8 100644 --- a/imageproxy.go +++ b/imageproxy.go @@ -124,6 +124,7 @@ func (p *Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request) { cached := resp.Header.Get(httpcache.XFromCache) glog.Infof("request: %v (served from cache: %v)", *req, cached == "1") + copyHeader(w, resp, "Cache-Control") copyHeader(w, resp, "Last-Modified") copyHeader(w, resp, "Expires") copyHeader(w, resp, "Etag")