Skip to content

ETAG Support, Variable Cache Time - #12

Open
sawilde wants to merge 5 commits into
shawnburke:masterfrom
sawilde:master
Open

ETAG Support, Variable Cache Time#12
sawilde wants to merge 5 commits into
shawnburke:masterfrom
sawilde:master

Conversation

@sawilde

@sawilde sawilde commented Sep 16, 2012

Copy link
Copy Markdown

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
Copy Markdown
Owner

Thanks for doing this, this looks pretty good.

Could you write some unit tests for the etag stuff?

@sawilde

sawilde commented Sep 18, 2012

Copy link
Copy Markdown
Author

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.

2 participants