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

Add ETag Support to .NET rewrite #35

Open
Kejax opened this issue Apr 3, 2024 · 1 comment
Open

Add ETag Support to .NET rewrite #35

Kejax opened this issue Apr 3, 2024 · 1 comment

Comments

@Kejax
Copy link
Member

Kejax commented Apr 3, 2024

Add support for ETags, which provide a way for applications to verify if a given endpoint still returns the last cached data. This reduces load and bandwidth

With every fetch from the AH-API, the server could generate a hash like MD5 and response with the ETag Header which holds the value of the hash.
A client can take this value and use it in the If-None-Match header. If the hash is still the same, because AH-API data is still the same or the next request from the client has been done before a new fetch occured, the Server answers with a 304 - Not Modified response without body, and with the normal response body, if the data has been changed.

This reduces the bandwidth needed and would be a nice addition, please ask if I explained something bad or if there still are questions

@Kejax
Copy link
Member Author

Kejax commented Apr 3, 2024

How the ETag value is generated is obviously not fixed

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

1 participant