radiobrowser-api icon indicating copy to clipboard operation
radiobrowser-api copied to clipboard

add http cache friendly headers

Open gfldex opened this issue 7 years ago • 0 comments

I'm working on Perl 6 bindings for radiobrowser-api and found myself in need to fetch the whole list of stations. Waiting for 60+ seconds proved to be rather boring. Hence my humble request to add support for the http headers fields Last-Modified, If-Modified-Since and If-Unmodified-Since.

There is the problem of the click* fields in a response. So it may even make send to have a special api call that returns a timestamp for when a station was added/removed/broke or even a call that only returns changed stations since a given date. The latter could help a great deal to keep the api responsive even if those 1 billion netizen start to use your fine service every day.

gfldex avatar Aug 13 '17 12:08 gfldex