OptionalmaxMaximum number of entries (LRU eviction). Default: 500
OptionalmaxMaximum total size in bytes. Default: 50MB
OptionalmaxMaximum response body size to cache in bytes. Default: 5MB
OptionaldefaultDefault TTL in ms when no Cache-Control is present. Default: 60_000. Max: 1 year
OptionalmaxMaximum absolute age in ms for any cached entry, regardless of Cache-Control. Default: 7 days
OptionalhonorHonor Cache-Control: no-store / no-cache. Default: true
OptionalcacheOnly cache these methods. Default: ["GET", "HEAD"]
OptionalcacheOnly cache these status codes. Default: [200,203,204,206,300,301,304,404,405,410,414,501]
OptionalcacheCustom cache key function (may be async)
OptionalstorageStorage adapter for persistence. Default: in-memory
OptionalnamespaceNamespace prefix for all keys
Configuration options for the HTTP cache.