Skip to content

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

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

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

Conversation

@CyberShadow
Copy link
Copy Markdown
Contributor

@CyberShadow CyberShadow commented Dec 10, 2018

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 milo merged commit f1a6a86 into milo:master Dec 11, 2018
@milo
Copy link
Copy Markdown
Owner

milo commented Dec 11, 2018

Thank you!

@milo
Copy link
Copy Markdown
Owner

milo commented Dec 11, 2018

Released version 1.4.6

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