Skip to content

Feature: add hishel cache option always_revalidate by default #220

Open
@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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy