diff options
| -rw-r--r-- | TODO | 5 | ||||
| -rw-r--r-- | plugins/weblog/weblog.cpp | 1 | ||||
| -rw-r--r-- | response.cpp | 2 | 
3 files changed, 4 insertions, 4 deletions
@@ -1,4 +1,3 @@ -Cache control: no cache of index, cache articles  Speed up config.GetPath  weblog: link consistency check (cron?)  weblog: style: zitate @@ -7,5 +6,5 @@ read: The socket was closed due to a timeout  webbox: Info if not selected: all  webbox: Copy function  config consistency: check double keys -redirect-plugin -fcgi +new plugin: redirect-plugin +new plugin: fcgi 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 += " <a href=\"?page="s + std::to_string(page + 1) + "\">older>></a>"s;      htmlPage += "<br/>";     } +   SetResponseHeader("cache_control", "no-store");     return htmlPage;    } catch (const std::exception& ex) {     return HttpStatus("500", "Reading Index page: "s + ex.what(), SetResponseHeader); diff --git a/response.cpp b/response.cpp index 1752466..f89e9e4 100644 --- a/response.cpp +++ b/response.cpp @@ -85,9 +85,9 @@ std::unordered_map<std::string, std::function<std::string(Server&)>> GetServerPa   {"ipv6", [](Server& server) { return is_ipv6_address(server.GetSocket().address) ? "yes" : "no"; }},   {"port", [](Server& server) { return server.GetSocket().port; }},   {"statistics", [](Server& server) { return server.GetStatistics().getValues(); }}, - {"version", [](Server& server) { return Server::VersionString; }},   {"uptime_host", [](Server& server) { return OS::uptime_host(); }},   {"uptime_webserver", [](Server& server) { return OS::uptime_process(); }}, + {"version", [](Server& server) { return Server::VersionString; }},  };  std::string GetServerParam(const std::string& key, Server& server)  | 
