4 ms·
I think for <1MB of data, with changes once (or twice) a year, the correct API is a static webserver with working ETag/If-Modified-Since support. If you want t
by xg15 3y ago
I think for <1MB of data, with changes once (or twice) a year, the correct API is a static webserver with working ETag/If-Modified-Since support.
If you want to get really fancy, offer an additional webhook which triggers when the file changes - so clients know when to redownload it and don't have to poll once a day.
...or make a script that sends a predefined e-mail to a mailing list when there is a change.
- justsomehnguy 3y ago> ETag/If-Modified-Since See above. Also you can just publish the version in DNS with a long enough TTL
- calpaterson 3y ago> working ETag/If-Modified-Since support I completely agree and csvbase already implements this (so does curl btw), try: curl --etag-compare stock-exchanges-etag.txt --etag-save stock-exchanges-etag.txt https://csvbase.com/meripaterson/stock-exchanges.parquet -O
- deleted 3y ago[deleted]