Skip to content

maxTtlIfError behavior clarification. #27

Open
@JustinTRoss

Description

@JustinTRoss

This line makes it appear maxTtlIfError is whatever value is provided in seconds for maxTtlIfError

maxTtlIfError: 30 * 60, // 30min, will respond with the cached response in case of an error (for further 20min)

This line makes it appear as though maxTtlIfError actually ends up being maxTtl + maxTtlIfError.

ttl: request.requestCache.maxTtl + request.requestCache.maxTtlIfError,

I'm happy to PR clarification once I have it. Just need to know what that is 🙃 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions