no-cache directive has to have the hyphen

This commit is contained in:
Arsh 2025-01-09 12:48:07 -05:00
parent 4de1370b7a
commit 0a84fcf49a
No known key found for this signature in database
GPG key ID: B09B8AE8D3751F1F

View file

@ -175,7 +175,7 @@ reverse_proxy upstream:443
To override the cache expiration that a proxy upstream had set for paths starting with `/no-cache`; enabling `defer` is necessary to ensure the header is set _after_ the proxy writes its headers:
```caddy-d
header /no-cache* >Cache-Control nocache
header /no-cache* >Cache-Control no-cache
reverse_proxy upstream:443
```