mirror of
https://github.com/willnorris/imageproxy.git
synced 2024-12-16 21:56:43 -05:00
adding cache-control header
This commit is contained in:
parent
9213c93c94
commit
9a4791d60a
1 changed files with 1 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue