Skip to content

Actually fix max age#14

Merged
mcollina merged 1 commit intomainfrom
actually-fix-max-age
May 8, 2025
Merged

Actually fix max age#14
mcollina merged 1 commit intomainfrom
actually-fix-max-age

Conversation

@mcollina
Copy link
Member

@mcollina mcollina commented May 8, 2025

This includes some parts of nodejs/undici#4198.

Signed-off-by: Matteo Collina <hello@matteocollina.com>
@mcollina mcollina requested a review from ivan-tymoshenko May 8, 2025 22:16
Copy link
Member

@ivan-tymoshenko ivan-tymoshenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see it adds a vary property, but not sure how does it fix maxage. Anyway lgtm

@mcollina
Copy link
Member Author

mcollina commented May 8, 2025

@ivan-tymoshenko I've updated the shared test from undici. It now requires a vary property.

https://github.com/platformatic/undici-cache-memory/pull/14/files#diff-e727e4bdf3657fd1d798edcd6b099d6e092f8573cba266154583a746bba0f346R175 does the fix for max-age.

@mcollina mcollina requested a review from ShogunPanda May 8, 2025 22:32
@ivan-tymoshenko
Copy link
Member

ivan-tymoshenko commented May 8, 2025

oh, it copies an object in get. my bad. I've missed that.

@mcollina mcollina merged commit 92066cc into main May 8, 2025
6 checks passed
@mcollina mcollina deleted the actually-fix-max-age branch May 8, 2025 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants