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

Implement http cache validation control in the API #1017

Open
tellison opened this issue Apr 22, 2024 · 0 comments
Open

Implement http cache validation control in the API #1017

tellison opened this issue Apr 22, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@tellison
Copy link
Contributor

To potentially reduce the response time for end users, and reduce the workload on the API server, the Adoptium API should implement some simple cache validation support.

Most of the responses from the Adoptium API vary infrequently, and we already know when the response's data are updated in the local database cache since they are updated via our own updater. By returning HTTP cache control headers and honoring corresponding HTTP request headers, the payload may be omitted in many of the responses.

For example, knowing when the API database is updated the server can return an entity tag validator which can be stored by clients and used to check their cache validity. Best practice is also to return a Last-Modified timestamp and check the If-Modified-Since header in requests.

This would be a new feature, and could be a good enhancement for a project to add this capability progressively to the API.

@tellison tellison added the enhancement New feature or request label Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant