Przeglądaj źródła

[Minor] Prevent controller results from being cached

Issue: #3330
tags/2.6
Vsevolod Stakhov 4 lat temu
rodzic
commit
6b471b2c54
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4
    0
      src/controller.c

+ 4
- 0
src/controller.c Wyświetl plik

@@ -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);


Ładowanie…
Anuluj
Zapisz