Skip to content
Extraits de code Groupes Projets
Valider 23619179 rédigé par ThibG's avatar ThibG Validation de Eugen Rochko
Parcourir les fichiers

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.
parent 62dd0b7f
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter