Support setting a grace period for cached content

Cache update still respects the expiration time
Merge pull request #2 from scorphus/master

Support setting a grace period for cached content