mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
FIX: missing last modified on avatars
This commit is contained in:
parent
b175eee89f
commit
aca0aa8e56
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue