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

✨ Cache middleware: Store e2e headers. #1807

Merged

Commits on Mar 7, 2022

  1. ✨ Cache middleware: Store e2e headers.

    As defined in RFC2616 - section-13.5.1, shared caches MUST
    store end-to-end headers from backend response and MUST be
    transmitted in any response formed from a cache entry.
    
    This commit ensures a stronger consistency between responses
    served from the handlers & from the cache middleware.
    thylong committed Mar 7, 2022
    Copy the full SHA
    f9cc6e8 View commit details
    Browse the repository at this point in the history
  2. ✨ Cache middleware: Add flag for e2e headers.

    Set flag to prevent e2e headers caching to
    be the default behavior of the cache middleware.
    This would otherwise change quite a lot the
    experience for cache middleware current users.
    thylong committed Mar 7, 2022
    Copy the full SHA
    ca2305d View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    583802e View commit details
    Browse the repository at this point in the history
  4. ✨ Cache middleware: Rename E2Eheaders into StoreResponseHeaders.

    E2E is an acronym commonly associated with test.
    While in the present case it refers to end-to-end
    HTTP headers (by opposition to hop-by-hop), this
    still remains confusing. This commits renames it
    to a more generic name.
    thylong committed Mar 7, 2022
    Copy the full SHA
    2ec16df View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    d803a05 View commit details
    Browse the repository at this point in the history
  6. ✨ Cache middleware: Move map instanciation.

    This will prevent an extra memory allocation for users
    not interested in this feature.
    thylong committed Mar 7, 2022
    Copy the full SHA
    699f70a View commit details
    Browse the repository at this point in the history
  7. Copy the full SHA
    c8371eb View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2022

  1. ✨ Cache middleware: Store e2e headers. gofiber#1807

    - use set instead of add for the headers
    - copy value from the headers -> prevent problems with mutable values
    ReneWerner87 committed Mar 8, 2022
    Copy the full SHA
    87099e5 View commit details
    Browse the repository at this point in the history