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

Include GET headers in dataSet object (Especially eTag) #779

Open
gibsonf1 opened this issue Jan 29, 2021 · 2 comments
Open

Include GET headers in dataSet object (Especially eTag) #779

gibsonf1 opened this issue Jan 29, 2021 · 2 comments
Labels
enhancement New feature request Triaged This means that we've a ticket to look at this in the future

Comments

@gibsonf1
Copy link

gibsonf1 commented Jan 29, 2021

It would be great if the dataset could harvest the headers as an object, maybe dataset.headers. Our particular case is we need to check the eTag in the header to see if a resource has been updated since last load, and then we wouldn't need to do an additional HEAD after loading the dataset to get that header.

The other information we need from the headers is whether or not a redirect occurred, and if so, what the redirected uri is.

@gibsonf1 gibsonf1 added the enhancement New feature request label Jan 29, 2021
@gibsonf1 gibsonf1 changed the title Inlcude GET headers in dataSet object Inlcude GET headers in dataSet object (Especially eTag) Jan 30, 2021
@nicolasmondada nicolasmondada changed the title Inlcude GET headers in dataSet object (Especially eTag) Include GET headers in dataSet object (Especially eTag) Feb 1, 2021
@nicolasmondada
Copy link
Contributor

nicolasmondada commented Feb 1, 2021

Hi @gibsonf1 ,

What you are asking for is a way to check if a resource that is in-memory is up-to-date with the server or needs to be re-fetched (optionally just re-fetch it if it's not up-to-date in the same check call).

Do I understand you correctly?

Cheers,
Nick.-

@gibsonf1
Copy link
Author

@nicolasmondada Yes, we have built a system around eTag to know when to refetch a resource thats changed.

@ThisIsMissEm ThisIsMissEm added the Triaged This means that we've a ticket to look at this in the future label May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature request Triaged This means that we've a ticket to look at this in the future
Projects
None yet
Development

No branches or pull requests

3 participants