commit 6b471b2: [Minor] Prevent controller results from being cached
Vsevolod Stakhov
vsevolod at highsecure.ru
Wed Apr 22 10:28:06 UTC 2020
Author: Vsevolod Stakhov
Date: 2020-04-22 11:23:53 +0100
URL: https://github.com/rspamd/rspamd/commit/6b471b2c542f0b8f454f6862b642685e4c258712 (HEAD -> master)
[Minor] Prevent controller results from being cached
Issue: #3330
---
src/controller.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/controller.c b/src/controller.c
index 4ed3f187c..e5ea56f17 100644
--- a/src/controller.c
+++ b/src/controller.c
@@ -3642,6 +3642,10 @@ start_controller_worker (struct rspamd_worker *worker)
"Access-Control-Allow-Origin", "*");
}
+ /* Disable all results caching, see #3330 */
+ rspamd_http_router_add_header (ctx->http,
+ "Cache-Control", "no-store");
+
rspamd_http_router_set_unknown_handler (ctx->http,
rspamd_controller_handle_unknown);
More information about the Commits
mailing list