Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

fix: Persist the HTTP-headers, used for caching, to disk#141

Merged
skx merged 4 commits intomasterfrom
140-cache-cache
Mar 8, 2025
Merged

fix: Persist the HTTP-headers, used for caching, to disk#141
skx merged 4 commits intomasterfrom
140-cache-cache

Conversation

@skx
Copy link
Owner

@skx skx commented Mar 5, 2025

In the past we tried to save the HTTP-headers which we returned to an in-memory cache (i.e. map), so that on all HTTP-requests after the first we could use them to minimize load on our remote feeds.

However we did not persist the headers, so that meant on startup we'd always make one unconditional HTTP-fetch against each configured feed.

This pull-request saves the values we've received and uses them on startup, and future updates.

This should close #140.

skx added 2 commits March 5, 2025 21:19
In the past we tried to save the HTTP-headers which we returned to
an in-memory cache (i.e. map), so that on all HTTP-requests after
the first we could use them to minimize load on our remote feeds.

However we did not _persist_ the headers, so that meant on startup
we'd always make one unconditional HTTP-fetch against each configured
feed.

This pull-request saves the values we've received and uses them on
startup, and future updates.

This should close #140.
@skx skx self-assigned this Mar 5, 2025
@skx skx merged commit 1b11d0f into master Mar 8, 2025
3 checks passed
@skx skx deleted the 140-cache-cache branch March 8, 2025 19:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Do better :)

1 participant