diff --git a/src/docs/markdown/caddyfile/directives/map.md b/src/docs/markdown/caddyfile/directives/map.md index 89f9f82..d2c2399 100644 --- a/src/docs/markdown/caddyfile/directives/map.md +++ b/src/docs/markdown/caddyfile/directives/map.md @@ -43,15 +43,15 @@ map [] { The following example demonstrates most aspects of this directive: ```caddy-d -map {host} {my_placeholder} {magic_number} { - example.com "some value" 3 - foo.example.com "another value" - (.*)\.example.com "${1} subdomain" 5 +map {host} {my_placeholder} {magic_number} { + example.com "some value" 3 + foo.example.com "another value" + ~(.*)\.example\.com$ "${1} subdomain" 5 - ~.*\.net$ - 7 - ~.*\.xyz$ - 15 + ~.*\.net$ - 7 + ~.*\.xyz$ - 15 - default "unknown domain" 42 + default "unknown domain" 42 } ``` diff --git a/src/docs/markdown/caddyfile/directives/reverse_proxy.md b/src/docs/markdown/caddyfile/directives/reverse_proxy.md index 2325555..87d5ed0 100644 --- a/src/docs/markdown/caddyfile/directives/reverse_proxy.md +++ b/src/docs/markdown/caddyfile/directives/reverse_proxy.md @@ -289,7 +289,7 @@ Passive health checks happen inline with actual proxied requests: ### Streaming -By default, the proxy partially buffers and periodically flushes responses to the client for wire efficiency: +By default, the proxy partially buffers the response for wire efficiency: - **flush_interval** is a [duration value](/docs/conventions#durations) that adjusts how often Caddy should flush the response buffer to the client. By default, no periodic flushing is done. A negative value (typically -1) suggests "low-latency mode" which disables response buffering completely and flushes immediately after each write to the client, and does not cancel the request to the backend even if the client disconnects early. This option is ignored and responses are flushed immediately to the client if one of the following applies from the response: - `Content-Type: text/event-stream`