Skip to content

Feature: add hishel cache option always_revalidate by default #220

@ayussh-verma

Description

@ayussh-verma

I wish to utilize the http_cache but with Hishel's always_revalidate set to true.
Hishel can be a bit aggressive with caching since it respects the max-age header which is usually 60 for GitHub's responses.
That means fresh data can only be pulled every 1 minute.

For my use-case, it would be better if I could only leverage Hishel's ETag caching to cache responses without exceeding ratelimits while still getting fresh data.

I think this is possible by creating a new cache control class and overriding the method for getting a controller, but that's inconvenient.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions