Skip to content

Feature request: Add only_if_cached similiar to how it exists in requests-cache #360

@dodofarm

Description

@dodofarm

Feature description

It would be great if we would have only_if_cached similar to how it's implemented in the requests-cache library.
See here

Use case

I don't want to make an actual request to the server if the content is already cached or even if it's not cached a 504 Not Cached response is more desirable that actually sending a request to the site.

My usecase is rate-limited APIs that have a quota which I don't want waste.

Workarounds

Not that I know of

Plan to implement

I don't have the time to look into this right now sadly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions