Skip to content

Fix Age header refresh on 304 revalidation#193

Merged
llfbandit merged 1 commit intollfbandit:masterfrom
petermnt:bugfix/304-cache-age
Mar 20, 2026
Merged

Fix Age header refresh on 304 revalidation#193
llfbandit merged 1 commit intollfbandit:masterfrom
petermnt:bugfix/304-cache-age

Conversation

@petermnt
Copy link
Copy Markdown
Contributor

This updates 304 revalidation to refresh the cached Age header in both dio_cache_interceptor and http_cache_client.

Without this, revalidated entries could keep an outdated age baseline, which can skew freshness calculations in http_cache_core.

@llfbandit
Copy link
Copy Markdown
Owner

Thanks for the contribution.
I agree with the changes but, can you apply only what really changed? (By removing formating changes, pubspec.lock, ...).

@petermnt petermnt force-pushed the bugfix/304-cache-age branch from 21a5ce2 to 3fd93f9 Compare March 17, 2026 17:51
@petermnt
Copy link
Copy Markdown
Contributor Author

Thanks for the contribution. I agree with the changes but, can you apply only what really changed? (By removing formating changes, pubspec.lock, ...).

Done

@llfbandit llfbandit merged commit 21ee489 into llfbandit:master Mar 20, 2026
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.

2 participants