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

routing/http/server: add cache control #584

Merged
merged 6 commits into from
Mar 7, 2024
Merged

Commits on Mar 6, 2024

  1. Configuration menu
    Copy the full SHA
    b543001 View commit details
    Browse the repository at this point in the history
  2. review: 15 mins -> 5 mins

    Co-authored-by: Daniel Norman <[email protected]>
    hacdias and 2color committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    2a18c58 View commit details
    Browse the repository at this point in the history
  3. feat: Last-Modified and stale-while-revalidate

    While we are at adding cache-control, we should leverage
    stale-while-revalidate hint, especially when we have useful results.
    
    Adding Last-Modified also does not cost us anything, but allows
    clients to benefit from caching proxies and CDNs in front of someguy
    returning HTTP 304 when request includes If-Modified-Since.
    lidel committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    e5b1dce View commit details
    Browse the repository at this point in the history
  4. fix: wrap Etag in quotes

    IPNS records should have "string etag" following syntax from
    https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag
    lidel committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    cbed4cd View commit details
    Browse the repository at this point in the history
  5. fix: include Vary header

    this ensures proxies put in front of someguy will use
    Accept from request in the cache key, and not mix
    application/x-ndjson responses with application/json ones.
    lidel committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    8106b07 View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2024

  1. Configuration menu
    Copy the full SHA
    3590def View commit details
    Browse the repository at this point in the history