WHAT IS CACHING?
When you open a webpage, your web browser stores the basic & essential information of that webpage locally so that it can be accessed more quickly from the next time. This is called Caching.
TYPES OF CACHING
Generally, caching takes place at different levels of the network starting from web browsers to DNS servers and to CDN servers. Caching at all these levels helps to reduce latency i.e. delay in loading the required web content.
BROWSER CACHING
When you load a webpage, the browser downloads some data to display that webpage. Browsers cache most of the content that appears on the webpage, saving a copy of that locally to reduce the page load times. So, when the user
loads the page the next time, the page will load much more quickly.
DNS CACHING
DNS Servers matches the website names(domains) with their IP addresses on a lookup table just like your phone's contact list. They store the recent lookups in the cache to reply the IP address to the user immediately without further queries. This is called DNS Caching
CDN CACHING
CDN Caching is nothing but storing the essential data like images, videos & web pages in the proxy servers near to the user i.e. you. Since the servers are closer to you, the CDN caching helps in delivering the content to you very quickly.