mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-09 19:52:30 +02:00
Make the expires
option set Expires and Cache-Control headers
This commit is contained in:
@@ -113,7 +113,7 @@ func streamOriginImage(ctx context.Context, reqID string, r *http.Request, rw ht
|
||||
rw.Header().Set("Content-Disposition", imagetype.ContentDisposition(filename, ext, po.ReturnAttachment))
|
||||
}
|
||||
|
||||
setCacheControl(rw, map[string]string{
|
||||
setCacheControl(rw, po.Expires, map[string]string{
|
||||
"Cache-Control": rw.Header().Get("Cache-Control"),
|
||||
"Expires": rw.Header().Get("Expires"),
|
||||
})
|
||||
|
Reference in New Issue
Block a user