diff --git a/src/docs/markdown/api.md b/src/docs/markdown/api.md index f66362a..d383a5c 100644 --- a/src/docs/markdown/api.md +++ b/src/docs/markdown/api.md @@ -46,6 +46,8 @@ Sets Caddy's configuration, overriding any previous configuration. It blocks unt This endpoint supports different config formats using config adapters. The request's Content-Type header indicates the config format used in the request body. Usually, this should be `application/json` which represents Caddy's native config format. For another config format, specify the appropriate Content-Type so that the value after the forward slash / is the name of the config adapter to use. For example, when submitting a Caddyfile, use a value like `text/caddyfile`; or for JSON 5, use a value such as `application/json5`; etc. +If the new config is the same as the current one, no reload will occur. To force a reload, set `Cache-Control: must-revalidate` in the request headers. + ### Examples Set a new active configuration: diff --git a/src/docs/markdown/automatic-https.md b/src/docs/markdown/automatic-https.md index bb4647c..3e9af97 100644 --- a/src/docs/markdown/automatic-https.md +++ b/src/docs/markdown/automatic-https.md @@ -85,7 +85,7 @@ All hostnames (domain names and IP addresses) qualify for fully-managed certific - consist only of alphanumerics, hyphens, dots, and wildcard (`*`) - do not start or end with a dot ([RFC 1034](https://tools.ietf.org/html/rfc1034#section-3.5)) -In addition, hostnams qualify for publicly-trusted certificates if they: +In addition, hostnames qualify for publicly-trusted certificates if they: - are not localhost - are not an IP address diff --git a/src/docs/markdown/caddyfile-tutorial.md b/src/docs/markdown/caddyfile-tutorial.md index 0baa001..069ea0c 100644 --- a/src/docs/markdown/caddyfile-tutorial.md +++ b/src/docs/markdown/caddyfile-tutorial.md @@ -77,6 +77,8 @@ Save your Caddyfile, then refresh your browser tab. You should either see a list Let's do something interesting with our file server: serve a templated page. Create a new file and paste this into it: + + ```html @@ -84,7 +86,7 @@ Let's do something interesting with our file server: serve a templated page. Cre