class

Marten::CDNCache::Settings

Inherits Marten::Conf::Settings < Reference < Object

Application settings for the CDN-cache middleware, exposed under the cdn_cache namespace (Marten.settings.cdn_cache). Read them through the typed Marten::CDNCache.settings helper.

Instance methods

default_policy

The policy applied when no rule matches. Conservative by default.

default_policy=(policy : Policy) : Policy
enabled
enabled=(enabled : Bool)
reset!

Restores defaults. Used to isolate specs that mutate global settings.

rules
rules=(rules : Array(Rule))