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

Request: Etag headers for LDML API #14

Open
rmunn opened this issue Apr 20, 2023 · 0 comments
Open

Request: Etag headers for LDML API #14

rmunn opened this issue Apr 20, 2023 · 0 comments
Assignees

Comments

@rmunn
Copy link

rmunn commented Apr 20, 2023

The current implementation of the LDML API relies on passing the &revid=... query parameter to avoid redownloading LDML files that haven't changed. That's pretty much exactly what the HTTP Etag header is designed for. It would nice if the LDML API server could be enhanced to return an HTTP ETag header alongside the LDML files being served up; that would allow some clients to use the If-None-Match header to skip downloading an LDML file they already have.

The expected benefit is small but non-zero: since ETag and If-None-Match are part of HTTP standard, some HTTP client libraries already incorporate them into their feature set. A project using such a library wouldn't need to care about the revid parameter, but would be able to simply use the library's existing caching feature as-is. I believe this would save programmer time in the long run.

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

No branches or pull requests

2 participants