FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

CachedClient: Send If-None-Match even with Last-Modified by CyberShadow · Pull Request #24 · milo/github-api · GitHub

CachedClient: Send If-None-Match even with Last-Modified - #24

Merged
milo merged 1 commit into
milo:masterfrom
CyberShadow:send-etag-anyway
Dec 11, 2018
Merged

CachedClient: Send If-None-Match even with Last-Modified#24
milo merged 1 commit into
milo:masterfrom
CyberShadow:send-etag-anyway

Conversation

CyberShadow commented Dec 10, 2018
edited
Loading

Copy link
Copy Markdown
Contributor

For some requests, GitHub may reply with a "304 Not Modified" even when some parts of the request have changed since the date in the "If-Modified-Since" header. The observed instance of this scenario was for adding assets to a release.

GitHub support admits that this behavior is unexpected, but suggests to use If-None-Match in such cases.

There is no apparent downside to sending both If-Modified-Since and If-None-Match headers, so do so.

milo merged commit f1a6a86 into milo:master Dec 11, 2018

milo commented Dec 11, 2018

Copy link
Copy Markdown
Owner

Thank you!

milo commented Dec 11, 2018

Copy link
Copy Markdown
Owner

Released version 1.4.6

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL