mirror of https://gitlab.com/curben/blog
post(caddy2-precompressed): minor grammar
This commit is contained in:
parent
7bb2a520f0
commit
23d5e3a2fc
|
@ -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:
|
||||
|
||||
|
|
Loading…
Reference in New Issue