Caching mechanisms in modern world browser
Getting data locally is always faster than the getting data from server. There are different types of caching mechanism that can be used to cache data on browser for optimizing performance and faster data retrieval. We will see some of the data store that can be used on client to cache or store data. 1. Session Storages This is a very well-known storage on browser. Commonly uses to session specific data on this store. We can infer a current tab as one session. Session storage will not be available across tabs or new tab. Maximum limit of of session storage is 5MB. Limitations: It cannot use to persist information across tab or sessions It cannot store data more than 5MB. Data is not secure. Additional effort need to secure data stored 2. Local storage Local storage is also a very well-known storage. This is u...