diff options
author | Chris Akritidis <43294513+cakrit@users.noreply.github.com> | 2019-05-13 12:32:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-13 12:32:13 +0200 |
commit | 466f0727eb3ac0f8ad4246889ce345a70ba7dc6d (patch) | |
tree | bff586b6e257d3134a40e3077136dfdc403f26d5 /web/api | |
parent | 8e9268dc762e2e2448470e3dd61dd4a6d51a2b0f (diff) |
Do not cache alarms and info api calls. Extend no-cache headers (#5999)
Diffstat (limited to 'web/api')
-rw-r--r-- | web/api/web_api_v1.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/web/api/web_api_v1.c b/web/api/web_api_v1.c index e418b03919..0499dd6718 100644 --- a/web/api/web_api_v1.c +++ b/web/api/web_api_v1.c @@ -208,6 +208,7 @@ inline int web_client_api_request_v1_alarms(RRDHOST *host, struct web_client *w, buffer_flush(w->response.data); w->response.data->contenttype = CT_APPLICATION_JSON; health_alarms2json(host, w->response.data, all); + buffer_no_cacheable(w->response.data); return 200; } @@ -754,6 +755,7 @@ inline int web_client_api_request_v1_info(RRDHOST *host, struct web_client *w, c buffer_strcat(wb, "\n\t]\n"); buffer_strcat(wb, "}"); + buffer_no_cacheable(wb); return 200; } |