jameshopkins / skyscanner-liveflights-api

✈️️ A point-free, monadic JS API wrapping the Skyscanner Live Flights API
MIT License
0 stars 1 forks source link

Add Interface To Signify Not Modified From API #3

Open jameshopkins opened 7 years ago

jameshopkins commented 7 years ago

Currently, the guidelines say to continue polling if the previous polling response contains is an HTTP 304.

It is safe to assume that consumers may want to administer their own cache in which retrieve the latest 200 from, rather than repolling in this context - which is what the current behaviour is.