post(caddy2-precompressed): minor grammar

This commit is contained in:
MDLeom 2021-01-11 22:31:49 +00:00
parent 7bb2a520f0
commit 23d5e3a2fc
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ http://localhost:8080 {
header @svg Content-Type image/svg+xml
```
`Content-Type` response header needs to be specified as a workaround, otherwise Caddy responses with `application/gzip`.
`Content-Type` response header needs to be specified as a workaround, otherwise Caddy responds with `application/gzip`.
### URL normalisation
@ -109,7 +109,7 @@ header @svg Content-Type image/svg+xml
root * /home/user/www
```
I prepared a set of dummy files with most common file extensions ([download](/files/20201112/dummy.zip)). This enables you to test whether Caddy serves the correct file. `.gz` and `.br` files are _not_ compressed files, they are text files so that you can easily identify the file being served. This also means you cannot test it on browsers since the files are not are not actually compressed (you'll get encoding error); also note that web browsers only send `Accept-Encoding: br` request header to HTTPS website.
I prepared a set of dummy files with most common file extensions ([download](/files/20201112/dummy.zip)). This enables you to test whether Caddy serves the correct file. `.gz` and `.br` files are _not_ compressed files, they are text files so that you can easily identify the file being served. This also means you cannot test it on browsers since the files are not gzip/brotli-compressed files (you'll get encoding error); also note that web browsers only send `Accept-Encoding: br` request header to HTTPS website.
Unzip the dummy.zip and specify the folder in the `root` directive. Following are some sample tests after you start Caddy: