From 735d011a6cccf94eebe8bed1a6f539828a7b75e6 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Thu, 30 Apr 2020 12:33:10 +0200 Subject: Cache control: no caching for blog index --- plugins/weblog/weblog.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins') diff --git a/plugins/weblog/weblog.cpp b/plugins/weblog/weblog.cpp index 688f574..20c70b7 100644 --- a/plugins/weblog/weblog.cpp +++ b/plugins/weblog/weblog.cpp @@ -301,6 +301,7 @@ namespace { htmlPage += " older>>"s; htmlPage += "
"; } + SetResponseHeader("cache_control", "no-store"); return htmlPage; } catch (const std::exception& ex) { return HttpStatus("500", "Reading Index page: "s + ex.what(), SetResponseHeader); -- cgit v1.2.3