aboutsummaryrefslogtreecommitdiffstats
path: root/src/controller.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-04-22 11:23:53 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-04-22 11:23:53 +0100
commit6b471b2c542f0b8f454f6862b642685e4c258712 (patch)
treee210a6d40f74d63796f7be24478c26ed8c7bfa02 /src/controller.c
parente9dd14585975a202238a7c0723a75ce3cdbab1f4 (diff)
downloadrspamd-6b471b2c542f0b8f454f6862b642685e4c258712.tar.gz
rspamd-6b471b2c542f0b8f454f6862b642685e4c258712.zip
[Minor] Prevent controller results from being cached
Issue: #3330
Diffstat (limited to 'src/controller.c')
-rw-r--r--src/controller.c4
1 files changed, 4 insertions, 0 deletions
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);