Difference between Cookie and Cache



Cookie is a very small piece of information which is stored on the client’s machine by the web site and is sent back to the server each time a page is requested. Cookies are usually used to store information needed for shorter periods. Cache is a temporary storage of web page resources stored on client’s machine for quicker loading of the web pages. The browser stores the web site contents like the images, videos, audio, text etc on our computer so the next time when we load the same website we will find it loading faster.
Cookie is to store information to track different characteristics related to user. Cache is used to make the loading of web pages faster.
Cookies keep information such as user preferences. Cache will keep resource files such as audio, video or flash files.
Cookies expire after some time. Cache is kept in the client’s machine until they are removed manually by the user.


Leave a Reply