mirror of
https://github.com/Neetpone/foalfetch.git
synced 2025-02-13 03:34:22 +01:00
fix: fix content-type and cache-control headers for images
This commit is contained in:
parent
8d4fd01011
commit
ad03c88a97
1 changed files with 2 additions and 1 deletions
|
@ -26,7 +26,8 @@ class ImagesController < ApplicationController
|
||||||
File.binwrite path, body
|
File.binwrite path, body
|
||||||
end
|
end
|
||||||
|
|
||||||
send_file path, disposition: :inline, content_type: content_type
|
response.headers['Cache-Control'] = 'public'
|
||||||
|
send_file path, disposition: :inline, type: content_type
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
Loading…
Reference in a new issue