diff options
author | Chris Akritidis <43294513+cakrit@users.noreply.github.com> | 2020-11-03 04:54:56 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-03 04:54:56 -0800 |
commit | 9b1e7aa937e7c75d90888511411487eb5a23a109 (patch) | |
tree | a69c0d0b034737b6ba773b2de11540b76b446167 /web | |
parent | 962abc2a99e8060a04243c06a1527b892fb0cd7a (diff) |
Don't cache registry responses (#10181)
Summary
Stop caching responses from the registry, in order to correctly record machine and person GUIDs
Component Name
web
Test Plan
Verify that the registry doesn't cache responses (expires header is lower than 1 day in the future).
Diffstat (limited to 'web')
-rw-r--r-- | web/api/web_api_v1.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/web/api/web_api_v1.c b/web/api/web_api_v1.c index 33a2ff6d07..de5773b7e4 100644 --- a/web/api/web_api_v1.c +++ b/web/api/web_api_v1.c @@ -652,6 +652,9 @@ inline int web_client_api_request_v1_registry(RRDHOST *host, struct web_client * int redirects = 0; */ + // Don't cache registry responses + buffer_no_cacheable(w->response.data); + while(url) { char *value = mystrsep(&url, "&"); if (!value || !*value) continue; |