WellDone / MoMo-Firmware

Embedded PIC Firmware and hardware designs for the WellDone Mobile Monitor (MoMo).
welldone.org
Other
8 stars 6 forks source link

Flatdoc should cache GitHub API request results #134

Open amcgee opened 9 years ago

amcgee commented 9 years ago

Currently, about 10 API requests are made to load the page (one for the directory listing, one for each markdown file) which can be troublesome if the user refreshes a lot because they'll hit GitHub's unauthenticated API rate limit of 60/hr. Caching locally in localStorage would solve this.

This is an issue with FlatDoc itself, but won't usually be hit without the modification to serve an entire directory. If we contribute that back to the flatdoc repo this should be fixed first.