HTTP Caching is available in most of the browsers and helps make a website more responsive and reduce network bandwidth. In this article, we will understand how to increase or decrease the Cache size in Modern browsers like Google Chrome, Mozilla Firefox, IE.
There are plethora of benefits of using the Browsers HTTP Caching. Caching would be useless if it did not significantly improve performance. Following list few of the caching benefits.
The performance of web sites can be significantly improved by reusing previously fetched resources. Web caches reduce latency and enable the content to be loaded quickly. This reduces the page load time and hence make the website more responsive.
The goal of HTTP caching is to eliminate the need to send requests in many cases, thereby reducing the network traffic by reducing the number of round-trips. Also, in certain condition, it can eliminate the need to send full responses and saves network bandwidth.
In Certain instances, the users may experience disruption in the network or No network access. In these scenario’s,website may cache the content, thereby allowing the content to be served locally with limited internet connectivity. This works well for sites with static data which doesn’t change frequently like Websites containing documentation.
I personally make use of local Cached version for the documentation of websites like MSDN, Firefox, Google Developers or blogs while am offline and commuting in the train. The connection is shaky and i can save some Phone data.
Different browsers provide various ways to increase the HTTP Cache size. This document is a step by step guide to increase the Browser Cache in various Browsers (Chrome, Firefox, IE).
Currently, the Chrome Browser doesn’t provide a way to set the Max Size of HTTP Cache in the UI. However, we can add a parameter (disk-cache-size), using command line.
Add the parameter –disk-cache-size=52428800 The entered size is in MB. So, 52428800 bytes is equivalent to 50 MB.
Press Ok or Apply and launch the Google Chrome.
Launch the Firefox.
Go to Tools -> options.
Select Privacy and Security options in the left side.
Scroll down to Cached Web Content section. You would be able to see the current cache size. For e.g. on my machine The text is Your web content cache is currently using 349 MB of disc space.
Check the Override automatic cache management Checkbox.
Enter the value in the textbox next to Limit Cache to. The entered value is calculated as Mb unit.
Launch the internet explorer.
Go to Tools -> Internet options.
Next, set the desired value of the Disk Space to use in the textbox. The entered value is calculated as Mb unit.
Click Ok and then again Ok/Apply and settings would be saved.
Close IE and open again.