Movatterモバイル変換


[0]ホーム

URL:


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

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

Broken Last-Modified + no 'since' = a bit clunky#695

Closed
zw wants to merge1 commit intogithub:masterfromzw:patch-2

Conversation

@zw
Copy link
Contributor

@zwzw commentedJan 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 aLast-Modified header, but it's inaccurate and doesn't change whenETag does (you'll easily find events streams containing events paradoxicallycreated_at a time newer than theLast-Modified header)
  • do not supportsince=<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 theETag (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 makeLast-Modified accurate and amenable to conditional requests, and/or to supportsince 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.
@zwzw changed the titleBroken If-Modified-Since + no 'since' = a bit clunkyBroken Last-Modified + no 'since' = a bit clunkyJan 20, 2015
@sigmavirus24
Copy link
Contributor

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

@githubgithub locked and limited conversation to collaboratorsMay 15, 2015
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@zw@sigmavirus24@jasonrudolph

[8]ページ先頭

©2009-2025 Movatter.jp