From: Vsevolod Stakhov Date: Wed, 22 Apr 2020 10:23:53 +0000 (+0100) Subject: [Minor] Prevent controller results from being cached X-Git-Tag: 2.6~497 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6b471b2c542f0b8f454f6862b642685e4c258712;p=thirdparty%2Frspamd.git [Minor] Prevent controller results from being cached Issue: #3330 --- diff --git a/src/controller.c b/src/controller.c index 4ed3f187cd..e5ea56f17a 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);