Google News
logo
Rest API - Interview Questions
What is Caching in Rest API?
Caching is the process in which server response is stored so that a cached copy can be used when required and there is no need for generating the same response again. This process not only reduces the server load but in turn increase the scalability and performance of the server. Only the client is able to cache the response and that too for a limited period of time.
 
Mentioned below are the header of the resources and their brief description so that they can be identified for the caching process :
 
* Time and date of resource creation
* Time and date of resource modification that usually stores the last detail.
* Cache-control header
* Time and date at which the cached resource will expire.
* The age which determines the time from when the resource has been fetched.
Advertisement