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

ETAG Support, Variable Cache Time #12

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

sawilde
Copy link

@sawilde sawilde commented Sep 16, 2012

ETAG Support

By using ETags we can query the server and only download data if we do not already have the latest version i.e. if we get a 304 (NotModified) then we update the cache entry with a new expired time otherwise we resort to the "normal" path.

Customised Cache Time Management

Allows a variable expiry cache time i.e. to be calculated based on "other" factors rather than just be a static time.

@shawnburke
Copy link
Owner

Thanks for doing this, this looks pretty good.

Could you write some unit tests for the etag stuff?

@sawilde
Copy link
Author

sawilde commented Sep 18, 2012

I may need your help - I tried following your tests but got confused (it was late though)

Can you give me some direction.

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

Successfully merging this pull request may close these issues.

None yet

2 participants