Cookies and Cache both are types of temporary storage frequently used to reduce access times and recognize request originating resources . Although cookies and cache are two ways to store data on client's machine, they serve different purposes.
Cache | Cookies |
---|---|
Cache is a type of temporary storage which is used to reduce access time in a system In terms of web , it helps reducing in band-with usage and reducing server load . | Cookies are a piece of data stored by the sites in the browser's storage for maintaining the states and recognizing the request origination source . |
It has no memory limit . | Cookies are limited to 4KB per website . |
Cache keep resource files such as audio, video or flash files. | Cookies stores information such as user preferences , |