Middleware #
Middleware is the processing layer that runs before or after the main handler. This section covers Caddy’s most frequently used built-in middleware — from URL rewrites and redirects, response compression, template rendering, to dynamically mapping values.