Caching in jQuery

Let's discuss caching in brief specifically relating to jQuery and as a concept in general.

The concept of caching is as old as the Internet itself, at least with the modern day Internet. Developers are using it to store repetitive data and to reduce cost to server calls or to remember the connection between the user and server.

Caching helps in many ways to boost the performance of web apps by writing images and sending the session's information to the user's hard drive at a special location called the temporary storage. Mostly, this location is specifically created on the local hard drive and is there to deal with such type of data.

Say you are surfing an online shopping cart over your browser. At the very first instance, the ...

Get Mastering JavaScript Promises now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.