diff options
author | ThibG <thib@sitedethib.com> | 2019-03-21 23:33:18 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2019-03-21 23:33:18 +0100 |
commit | 236191794412724f865b99bf5c0bb7c33a51ae67 (patch) | |
tree | 0aa66815513bf2b8d437f758e1751cbe0c8b3adc /app/controllers/concerns | |
parent | 62dd0b7f9c76aac7ea9ad144bec7416eb4fec4ee (diff) |
Mark the 410 gone response for suspended accounts as cachable (#10339)
This will help a great deal with #9377 when a caching reverse proxy is configured.
Diffstat (limited to 'app/controllers/concerns')
-rw-r--r-- | app/controllers/concerns/account_controller_concern.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/controllers/concerns/account_controller_concern.rb b/app/controllers/concerns/account_controller_concern.rb index 8817fd7de..4f28941ae 100644 --- a/app/controllers/concerns/account_controller_concern.rb +++ b/app/controllers/concerns/account_controller_concern.rb @@ -69,6 +69,10 @@ module AccountControllerConcern end def check_account_suspension - gone if @account.suspended? + if @account.suspended? + skip_session! + expires_in(3.minutes, public: true) + gone + end end end |