mirror of
https://github.com/willnorris/imageproxy.git
synced 2024-12-16 21:56:43 -05:00
Copy header Link for canonical image SEO
fix format
This commit is contained in:
parent
b61992ec51
commit
79369ca8ef
1 changed files with 1 additions and 0 deletions
|
@ -131,6 +131,7 @@ func (p *Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||||
copyHeader(w, resp, "Last-Modified")
|
copyHeader(w, resp, "Last-Modified")
|
||||||
copyHeader(w, resp, "Expires")
|
copyHeader(w, resp, "Expires")
|
||||||
copyHeader(w, resp, "Etag")
|
copyHeader(w, resp, "Etag")
|
||||||
|
copyHeader(w, resp, "Link")
|
||||||
|
|
||||||
if is304 := check304(r, resp); is304 {
|
if is304 := check304(r, resp); is304 {
|
||||||
w.WriteHeader(http.StatusNotModified)
|
w.WriteHeader(http.StatusNotModified)
|
||||||
|
|
Loading…
Reference in a new issue