Skip to content

Restore cache tests & fix max-age behavior #4198

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

Merged
merged 4 commits into from
May 10, 2025
Merged

Restore cache tests & fix max-age behavior #4198

merged 4 commits into from
May 10, 2025

Conversation

mcollina
Copy link
Member

@mcollina mcollina commented May 8, 2025

The cache tests were not being run. Restore them and add a check to prevent this situation to happen again.

Moreover, it fixes a bug in the memory storage that prevented the max-age and expiry directives to work properly.

fixes #4203

Signed-off-by: Matteo Collina <hello@matteocollina.com>
Signed-off-by: Matteo Collina <hello@matteocollina.com>
@mcollina mcollina changed the title Restore cache tests Restore cache tests & fix max-age behavior May 8, 2025
@mcollina mcollina requested review from ronag and mertcanaltin May 8, 2025 21:49
Signed-off-by: Matteo Collina <hello@matteocollina.com>
Signed-off-by: Matteo Collina <hello@matteocollina.com>
Copy link
Contributor

@ShogunPanda ShogunPanda left a comment

Choose a reason for hiding this comment

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

LGTM!

@mcollina mcollina merged commit cfec10c into main May 10, 2025
52 of 55 checks passed
@mcollina mcollina deleted the fix-cache branch May 10, 2025 18:33
This was referenced May 10, 2025
caitp pushed a commit to caitp/undici that referenced this pull request May 15, 2025
* Restore cache tests

Signed-off-by: Matteo Collina <hello@matteocollina.com>

* fixed caching

Signed-off-by: Matteo Collina <hello@matteocollina.com>

* fixup

Signed-off-by: Matteo Collina <hello@matteocollina.com>

* fixup

Signed-off-by: Matteo Collina <hello@matteocollina.com>

---------

Signed-off-by: Matteo Collina <hello@matteocollina.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

interceptors.cache causing memory leak after max-age= time
4 participants