Caching can refer to many concepts. The general meaning of cache is to store a copy of something to prevent the necessity of retrieving it again. When speaking of Web development, there are three main types of caching:
Caching on the server— Storing a complete or partially generated resource on the server to keep from having to regenerate it.
Caching on the client— Storing a resource on the client to keep from having to receive the entire resource again.
Proxy caching— Storing a resource on a proxy to allow direct replies to an HTTP request rather than having to receive the entire resource from the origin server again.
Although there are many side advantages to caching, there are three core benefits:
Improve response time ...