wakatime / macos-wakatime

Mac system tray app for automatic time tracking and metrics generated from your Xcode, Figma, Postman, etc. usage.
https://wakatime.com/mac
BSD 3-Clause "New" or "Revised" License
127 stars 22 forks source link

Rate limit checking for wakatime-cli updates, to avoid GitHub API quota #172

Closed alanhamlett closed 8 months ago

alanhamlett commented 8 months ago

When not authenticated, the etag conditional header If-Modified-Since still counts against the IP's rate limit so it does nothing. With this PR, we're only checking for updates to wakatime-cli once every 4 hours so we don't exhaust our GitHub API rate limit.