Skip to content

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 mertcanaltin and ronag 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