Caching a json response from an API

Caching a json response from an API

I am getting data from an API cross browser that gets live hotel rates.

Is it worth making another call each time you need to filter the results for example filtering hotels from $100-$200? So everytime a use needs to make a filtered request a new call needs to be made to the server (increasing call frequesncy to the server).

My traffic is very low volume so I don't really think this is going to be an issue but I want to just ask what the best practice is regarding getting live dynamic rates from an external API.

Would it be best to get the initial request and cache it and if the user uses one of the filters, a request is made to the cached file and if a new search request is made a new file is served and caching this one again?


Any help..Thanks