-
Notifications
You must be signed in to change notification settings - Fork 23
Caddy
Mark Nottingham edited this page Jul 11, 2023
·
2 revisions
Caddy is built with xcaddy
including the cache-handler plugin.
The Caddyfile
is:
{
order cache before rewrite
cache
}
:8006 {
cache {
default_cache_control no-store
}
reverse_proxy http://127.0.0.1:8000 {
transport http {
dial_timeout 10s
}
}
}
(default_cache_control
is set so that Caddy doesn't cache things without Cache-Control
; unfortunately, it is passed downstream)