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).
Chris Akritidis committed
Nov 3, 2020 at 04:54 UTC
9b1e7aa937e7c75d90888511411487eb5a23a109
1 file changed
+3
web/api/web_api_v1.c
+3
@@ -652,6 +652,9 @@ inline int web_client_api_request_v1_registry(RRDHOST *host, struct web_client *
652
int redirects = 0;
653
*/
654
655
+ // Don't cache registry responses
656
+ buffer_no_cacheable(w->response.data);
657
+
658
while(url) {
659
char *value = mystrsep(&url, "&");
660
if (!value || !*value) continue;