diff options
| author | Roland Reichwein <mail@reichwein.it> | 2020-04-30 12:33:10 +0200 | 
|---|---|---|
| committer | Roland Reichwein <mail@reichwein.it> | 2020-04-30 12:33:10 +0200 | 
| commit | 735d011a6cccf94eebe8bed1a6f539828a7b75e6 (patch) | |
| tree | dae80372082c6900fe264ebf8e7d045f3a816681 /plugins/weblog | |
| parent | 292235b5c5ae25139d5945c2a298e13272a4f29b (diff) | |
Cache control: no caching for blog index
Diffstat (limited to 'plugins/weblog')
| -rw-r--r-- | plugins/weblog/weblog.cpp | 1 | 
1 files changed, 1 insertions, 0 deletions
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);  | 
