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

feat: http caching #3562

Open
wants to merge 34 commits into
base: main
Choose a base branch
from
Open

feat: http caching #3562

wants to merge 34 commits into from

Commits on Sep 14, 2024

  1. feat: http caching

    Implements bare-bones http caching as per rfc9111
    
    Closes nodejs#3231
    Closes nodejs#2760
    Closes nodejs#2256
    Closes nodejs#1146
    
    Co-authored-by: Carlos Fuentes <[email protected]>
    
    Co-authored-by: Robert Nagy <[email protected]>
    
    Co-authored-by: Isak Törnros <[email protected]>
    
    Signed-off-by: flakey5 <[email protected]>
    flakey5 committed Sep 14, 2024
    Configuration menu
    Copy the full SHA
    f69a8b2 View commit details
    Browse the repository at this point in the history
  2. fixup! feat: http caching

    Signed-off-by: flakey5 <[email protected]>
    flakey5 committed Sep 14, 2024
    Configuration menu
    Copy the full SHA
    57c0f45 View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2024

  1. fixup! fixup! feat: http caching

    Signed-off-by: flakey5 <[email protected]>
    flakey5 committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    c88fb25 View commit details
    Browse the repository at this point in the history
  2. fixup! fixup! fixup! feat: http caching

    Signed-off-by: flakey5 <[email protected]>
    flakey5 committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    0a442b2 View commit details
    Browse the repository at this point in the history
  3. Update lib/handler/cache-handler.js

    Co-authored-by: Robert Nagy <[email protected]>
    flakey5 and ronag committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    ae6edca View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2024

  1. Apply suggestions from code review

    Co-authored-by: Carlos Fuentes <[email protected]>
    flakey5 and metcoder95 committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    26b2227 View commit details
    Browse the repository at this point in the history
  2. fixup! fixup! fixup! fixup! feat: http caching

    Signed-off-by: flakey5 <[email protected]>
    flakey5 committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    81cb021 View commit details
    Browse the repository at this point in the history
  3. fixup! fixup! fixup! fixup! fixup! feat: http caching

    Signed-off-by: flakey5 <[email protected]>
    flakey5 committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    6bff376 View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2024

  1. clarify type for MemoryCacheStore

    Signed-off-by: flakey5 <[email protected]>
    flakey5 committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    2edee29 View commit details
    Browse the repository at this point in the history
  2. Apply suggestions from code review

    Co-authored-by: Aras Abbasi <[email protected]>
    flakey5 and Uzlopak committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    f128e9a View commit details
    Browse the repository at this point in the history
  3. Apply suggestions from code review

    Co-authored-by: Aras Abbasi <[email protected]>
    flakey5 and Uzlopak committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    807e764 View commit details
    Browse the repository at this point in the history
  4. tmp

    Signed-off-by: flakey5 <[email protected]>
    flakey5 committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    4f8139a View commit details
    Browse the repository at this point in the history
  5. fixup! tmp

    Signed-off-by: flakey5 <[email protected]>
    flakey5 committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    fabf558 View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2024

  1. Apply suggestions from code review

    Co-authored-by: Aras Abbasi <[email protected]>
    flakey5 and Uzlopak committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    4546799 View commit details
    Browse the repository at this point in the history
  2. perf things, deleteByOrigin

    Signed-off-by: flakey5 <[email protected]>
    flakey5 committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    5a215d2 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2024

  1. incredibly messy and broken impl of streaming idea

    Signed-off-by: flakey5 <[email protected]>
    flakey5 committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    73564e8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3a08528 View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2024

  1. fix tests

    Signed-off-by: flakey5 <[email protected]>
    flakey5 committed Sep 21, 2024
    Configuration menu
    Copy the full SHA
    cbe7b97 View commit details
    Browse the repository at this point in the history
  2. check if the response is already cached again

    Signed-off-by: flakey5 <[email protected]>
    flakey5 committed Sep 21, 2024
    Configuration menu
    Copy the full SHA
    edc0772 View commit details
    Browse the repository at this point in the history
  3. backpressure patch

    Signed-off-by: flakey5 <[email protected]>
    flakey5 committed Sep 21, 2024
    Configuration menu
    Copy the full SHA
    d7b24a4 View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2024

  1. move body out of CacheStoreValue, remove size property

    Signed-off-by: flakey5 <[email protected]>
    flakey5 committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    0877f95 View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2024

  1. Apply suggestions from code review

    Co-authored-by: Robert Nagy <[email protected]>
    flakey5 and ronag committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    e065a8e View commit details
    Browse the repository at this point in the history
  2. add some comments on createWriteStream

    Signed-off-by: flakey5 <[email protected]>
    flakey5 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    230533a View commit details
    Browse the repository at this point in the history
  3. fix type tests, make staleAt and deleteAt absolute

    Signed-off-by: flakey5 <[email protected]>
    flakey5 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    bcd7fa1 View commit details
    Browse the repository at this point in the history
  4. empty the body when overwriting the response

    Signed-off-by: flakey5 <[email protected]>
    flakey5 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    9ef03ef View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    85a99d5 View commit details
    Browse the repository at this point in the history
  6. update onError calls

    Signed-off-by: flakey5 <[email protected]>
    flakey5 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    58839ee View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2024

  1. remove request deduplication for now

    Signed-off-by: flakey5 <[email protected]>
    flakey5 committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    e49a32c View commit details
    Browse the repository at this point in the history
  2. rename value -> opts, storedValue -> value

    Signed-off-by: flakey5 <[email protected]>
    flakey5 committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    6469aab View commit details
    Browse the repository at this point in the history
  3. fix types

    Signed-off-by: flakey5 <[email protected]>
    flakey5 committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    969deb2 View commit details
    Browse the repository at this point in the history
  4. Apply suggestions from code review

    Co-authored-by: Matteo Collina <[email protected]>
    flakey5 and mcollina committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    3370f66 View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2024

  1. simplify parsing for qualified no-cache and private

    Signed-off-by: flakey5 <[email protected]>
    flakey5 committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    263718e View commit details
    Browse the repository at this point in the history
  2. fix header omission, some cleanup

    Signed-off-by: flakey5 <[email protected]>
    flakey5 committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    b5e483a View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2024

  1. Merge branch 'main' into flakey5/3231

    Signed-off-by: flakey5 <[email protected]>
    flakey5 committed Sep 29, 2024
    Configuration menu
    Copy the full SHA
    7ea49d3 View commit details
    Browse the repository at this point in the history