Skip to content
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

For better performance, Loader should send If-Modified-Since headers when downloading TUF metadata, and read unmodified data from persistent storage #87

Merged
merged 8 commits into from
Oct 25, 2023

Conversation

phenaproxima
Copy link
Collaborator

Right now, we have a big performance problem, which is that we always download TUF metadata from the server, even if we already have the most up-to-date version of it in persistent storage. That's real bad.

We need to fix this by sending an If-Modified-Since header with these requests. If the server supports them, it should reply to requests for unchanged metadata with 304 Not Modified, which should be our cue to load the data from persistent storage.

Copy link
Contributor

@tedbow tedbow left a comment

Choose a reason for hiding this comment

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

Looks good

@phenaproxima phenaproxima merged commit 7e76107 into main Oct 25, 2023
@phenaproxima phenaproxima deleted the if-modified-since branch October 25, 2023 21:20
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