Boosted by jsonstein@masto.deoan.org ("Jeff Sonstein"):
evan@activitypub.space wrote:
Our X-RateLimit-Reset headers are bad and we should feel bad
I've found at least four different formats used on the Fediverse for the X-RateLimit-Reset header:
- A datestamp (Mastodon)
- Unix epoch in seconds
- Time offset in seconds (N seconds from now)
- Unix epoch in milliseconds (Holos)
It's possible to use some heuristics for these (looks like a date, looks like an integer, range of the integer), which are pretty reliable.
The new RateLimit headers from IETF are very nice, but don't seem to be well-supported yet.