Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Conversation

@zw
Copy link
Contributor

@zw zw commented Jan 20, 2015

This would be better raised as an issue but you have them turned off. The patch is not to be taken entirely seriously. I'd use /contact but prefer issues to raised in the open.

The */events endpoints:

  • return a Last-Modified header, but it's inaccurate and doesn't change when ETag does (you'll easily find events streams containing events paradoxically created_at a time newer than the Last-Modified header)
  • do not support since=<timestamp>

Last-Modified should be made accurate, removed or should carry a warning, to minimise confusion.

Current behaviour means that a caller wanting to efficiently process only events since they last checked must store both the ETag (to avoid unconditional requests) and the timestamp (to manually discard events older than that) and still needs to request more events than they care about. It might be neater for callers and lighter on GitHub's bandwidth to make Last-Modified accurate and amenable to conditional requests, and/or to support since so that callers need only grab the events since their last check. That way, a single timestamp would be enough state.

*This would be better raised as an issue but you have them turned off.  The patch is not to be taken entirely seriously.*

The `*/events` endpoints:

 * return a `Last-Modified` header, but it's inaccurate and doesn't change when ETag does (you'll easily find events streams containing events paradoxically newer than the `Last-Modified` header)
 * do not support `since=<timestamp>`

`Last-Modified` should be made accurate, removed or should carry a warning, to minimise confusion.

Current behaviour means that a caller wanting to efficiently process only events since they last checked must store both the ETag (to avoid unconditional requests) and the timestamp (to manually discard events older than that) and still needs to request more events than they care about.  It might be neater for callers and lighter on GitHub's bandwidth to make `Last-Modified` accurate and amenable to conditional requests, and/or to support `since` so that callers need only grab the events since their last check.  That way, a single timestamp would be enough state.
@zw zw changed the title Broken If-Modified-Since + no 'since' = a bit clunky Broken Last-Modified + no 'since' = a bit clunky Jan 20, 2015
@sigmavirus24
Copy link
Contributor

@zw the proper way to deal with this is to use the contact page to talk to @github/api because they won't deal with this in public here.

@github github locked and limited conversation to collaborators May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.