Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

use cache control headers in response. #3

Open
wants to merge 1 commit into
from
Jump to file or symbol
Failed to load files and symbols.
+1 −0
Split
View
@@ -73,6 +73,7 @@ def format_response!
response.status = 200
response.headers["Content-Type"] = mime_type_from_request_url
response.headers["Content-Length"] = transformed_image_file_size_in_bytes.to_s
+ response.headers.merge! configuration.cache_control_headers
response.body << read_tempfile
true
end