FIX: missing last modified on avatars

This commit is contained in:
Sam 2014-07-08 17:16:07 +10:00
parent b175eee89f
commit aca0aa8e56

View File

@ -74,6 +74,7 @@ class UserAvatarsController < ApplicationController
end
if image
response.headers["Last-Modified"] = File.ctime(image).httpdate
expires_in 1.year, public: true
send_file image, disposition: nil
else