Skip to content

Instantly share code, notes, and snippets.

@ram0973
Created October 26, 2016 06:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ram0973/d750c9f60bea3c83e67fe58a6f5c4b6b to your computer and use it in GitHub Desktop.
Save ram0973/d750c9f60bea3c83e67fe58a6f5c4b6b to your computer and use it in GitHub Desktop.
Python: get If-Modified-Since Tag
timestamp = datetime.utcnow() - timedelta(seconds=60)
expiration_time = timestamp.strftime('%a, %d %b %Y %H:%M:%S GMT')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment