Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http: dynamic responses for empty cache entries #603

Merged
merged 1 commit into from
Mar 6, 2024
Merged

Commits on Feb 8, 2024

  1. http: dynamic responses for empty cache entries

    If the cache entry for any given url was cleared, this would be
    indicated by a null entry for that url, and vere would serve a 404 for
    those cases, instead of falling back to the normal, dynamic behavior of
    injecting the request into eyre.
    
    Here, we make eyre serve from the cache only if there is a full cache
    entry for the url, and have it proceed into normal request injection
    logic otherwise.
    
    This way, setting a cached response for some url no longer means giving
    up dynamic responses on that url for the rest of time.
    
    Recent versions of eyre exhibit the same behavior. As such, in practice,
    this code won't change the observed behavior without a similarly-patched
    version of eyre.
    Fang- committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    da7003f View commit details
    Browse the repository at this point in the history