From 0cb9d0739f85cfc39beea0431b88924fd3cebf51 Mon Sep 17 00:00:00 2001 From: Daniel Nephin Date: Tue, 7 Jul 2020 15:24:26 -0400 Subject: [PATCH] docs: dns_config.cache_max_age=0 --- website/pages/docs/agent/options.mdx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/website/pages/docs/agent/options.mdx b/website/pages/docs/agent/options.mdx index b595d7f7b8..78dd44bf3f 100644 --- a/website/pages/docs/agent/options.mdx +++ b/website/pages/docs/agent/options.mdx @@ -1249,6 +1249,10 @@ Valid time units are 'ns', 'us' (or 'µs'), 'ms', 's', 'm', 'h'." is enabled, the agent will attempt to re-fetch the result from the servers if the cached value is older than this duration. See: [agent caching](/api/features/caching). + **Note** that unlike the `max-age` HTTP header, a value of 0 for this field is + equivalent to "no max age". To get a fresh value from the cache use a very small value + of `1ns` instead of 0. + - `prefer_namespace` ((#dns_prefer_namespace)) - When set to true, in a DNS query for a service, the label between the domain and the `service` label will be treated as a namespace name instead of a datacenter.