From 4868b51a030ebd71e512c0a8c7f1f7b5fc24de09 Mon Sep 17 00:00:00 2001 From: Gunnstein Lye Date: Tue, 25 May 2021 13:09:19 +0200 Subject: [PATCH] Do not cache login/logout --- app/config/config.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/config/config.yml b/app/config/config.yml index 505374f470..6a1d5bd07c 100644 --- a/app/config/config.yml +++ b/app/config/config.yml @@ -134,3 +134,12 @@ fos_http_cache: public: true max_age: 0 s_maxage: 20 + # Do not cache login/logout + - + match: + path: ^/(login|logout) + headers: + overwrite: true + cache_control: + max_age: 0 + s_maxage: 0