Skip to content

Plugin: dezeen-cache-control

PropertyValue
Version1.1.0
PurposeSets short browser TTL for HTML while keeping long shared-cache TTL for Varnish/Cloudflare

Single-file plugin. Hooks into send_headers at priority 999 to set Cache-Control headers:

Cache-Control: max-age=<short>, s-maxage=<long>

This ensures browsers revalidate frequently while Varnish/Cloudflare can serve longer-lived caches.