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

Intepret Cache Headers #11

Open
2 of 3 tasks
hawx opened this issue Jan 5, 2016 · 0 comments
Open
2 of 3 tasks

Intepret Cache Headers #11

hawx opened this issue Jan 5, 2016 · 0 comments

Comments

@hawx
Copy link
Owner

hawx commented Jan 5, 2016

When requesting a feed the feed may specify how often to fetch the feed. But it may also return Expires or ETag headers:

  • If an Expires header is returned, then if that date is further in the future than the next fetch time it should be used instead.
  • If an ETag header is returned send an If-None-Match header with the given value on the next fetch.

And, always send a If-Modified-Since with the last fetch time.

Ignore Cache-Control for now, it will probably be more hassle than it's worth.

Tasks

  • Always send If-Modified-Since with the last fetch time.
  • If an Expires header is returned then set the next fetch time to the maximum of it or the usual value.
  • If an ETag header is returned send an If-None-Match header with the next fetch.
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