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

Conditional GET support #53

Open
coreation opened this issue Mar 31, 2012 · 1 comment
Open

Conditional GET support #53

coreation opened this issue Mar 31, 2012 · 1 comment
Assignees

Comments

@coreation
Copy link
Member

Support a Conditional GET on the request side of The DataTank.

@ghost ghost assigned coreation Mar 31, 2012
@marc-portier
Copy link
Contributor

This should be doable by storing a generated ETag, or the last-mod-time together with the old response in the memcached.

Logic then becomes:

  • check entry in memcached, if available
    • check if conditional get
      • if condition met reply with 304 Not Modified
      • if not reply from memcached
  • if not in memcached: reproduce and store in memcached

For more details: http://ruturajv.wordpress.com/2005/12/27/conditional-get-request/ gives a nice overview

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