Skip to main content
Version: 0.10.0-dev

Cache Policy

The cache_policy block configures the Cache-Control response header for static file routes.

cache_policy = {
# The max-age value in seconds.
max_age_seconds = 3600

# Whether the cache is public.
public = true

# Whether to add the immutable directive.
immutable = false
}

Fields

FieldTypeDefaultDescription
max_age_secondsinteger3600The max-age value in seconds. Defaults to 1 hour.
publicbooleantrueWhether the cache is public.
immutablebooleanfalseWhether to add the immutable directive.