Friday, 16 February 2018

Difference between Cookies and Cache?



1. Definations:

Cookies:

   Small files downloaded to your computer to track your previous  activity.

Cache:

    Files downloaded to your computer memory to store the current version of the webpage so  next time browser doesn’t need to download all the files again from the internet when we visit that webpage again.

2. Advantages:

Cookies:

    Less memory, no extra burden on server, simple to use and implement.

Cache:

    Faster access, save time, save data. 

3. Size:

Cookies:

   Can support as large as 4kb, 50 cookies per domain (per website), can support at least 3000 cookies in total.

Cache:

  Depend on the limit set by your internet browser.

4. Disadvantages:

Cookies:

   Security risk because of its clean plain text. User can disable cookies, User can delete cookies, Track browsing activities.

Cache:

   Sometimes websites loaded from cache can be different from the website on internet.

5. Expires:

Cookies:

   Expires after sometime.

Cache:

Kept in the client’s machine until they are removed manually by the user.







0 comments:

Post a Comment

Tech UOG