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

Do not fetch plugin-versions eagerly #312

Open
daniel-beck opened this issue Mar 21, 2021 · 4 comments
Open

Do not fetch plugin-versions eagerly #312

daniel-beck opened this issue Mar 21, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@daniel-beck
Copy link
Member

looks like this file is retrieved even when it's not needed. This should be fixed to reduce bandwidth waste, every call is 10MB.

@daniel-beck daniel-beck added the bug Something isn't working label Mar 21, 2021
@timja
Copy link
Member

timja commented Mar 21, 2021

We use it almost every time I think, if any plugin isn't the latest version we use it to get the checksum.

This is cached for 1 hour.

@daniel-beck
Copy link
Member Author

if any plugin isn't the latest version

How likely is this? Do you check the update-center.json for the version first, or is an explicitly specified version enough to go through here, even if it's the latest?

This is cached for 1 hour.

I suggest this caches until content changes (If-Modified-Since).

Plus I see requests from the same IP address every 5 minutes. Is that someone building the same Docker image every 5 minutes?

@hp77-creator
Copy link
Contributor

This is cached for 1 hour.

How is this implemented, I mean the duration of 1 hr if you don't mind?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants