Skip to content

Instantly share code, notes, and snippets.

@dangra
Created December 31, 2012 15:11
Show Gist options
  • Save dangra/4420541 to your computer and use it in GitHub Desktop.
Save dangra/4420541 to your computer and use it in GitHub Desktop.
class Policy(object):
def should_cache_request(self, request):
pass
def should_cache_response(self, response, request):
pass
def is_cached_response_fresh(self, response, request):
pass
def is_cached_response_valid(self, cached_response, response, request):
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment