added config option: add_header_cache_no_store_in_htmx_request

send "Cache-Control: no-store, max-age=0" http header if a request is made by htmx library (ajax)
if a webbrowser get a page from the cache then it will render just the last request without the whole html page (css, js, etc)
https://github.com/bigskysoftware/htmx/issues/497
This commit is contained in:
2021-06-21 11:43:59 +02:00
parent 672737a0d8
commit a1c0f6f7f0
3 changed files with 13 additions and 0 deletions

View File

@@ -313,6 +313,7 @@ void Config::AssignValues(bool stdout_is_closed)
proxy_ip_header = Text(L"proxy_ip_header", L"X_Real_IP");
antispam_list_max_size = Size(L"antispam_list_max_size", 10);
add_header_cache_no_store_in_htmx_request = Bool(L"add_header_cache_no_store_in_htmx_request", true);
}