]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Prevent controller results from being cached
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 22 Apr 2020 10:23:53 +0000 (11:23 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 22 Apr 2020 10:23:53 +0000 (11:23 +0100)
Issue: #3330

src/controller.c

index 4ed3f187cd373455f7eb87a6bd534358e9192e5a..e5ea56f17a1e0f78d215106f261ad4b296f378b3 100644 (file)
@@ -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);