Cookies are small files that contain information about user web activities such as authentication information, location, browsing preferences, information that you have filled in forms, your last visit, etc. When you open a website, the web server sends a cookie to your web browser which then saves it as a file with your permission.
Your browser probably has hundreds of cookies stored in it which are normally cleared automatically after some time. However, sometimes you manually have to delete these cookies in order to solve certain browsing-related problems.
Cache is a temporary storage of webpage resources like HTML pages, JavaScript files, images, logos, etc. When you open a website, your browser caches these files locally into your system. On your next visit to the same site, the browser does not need to retrieve those files again. This way it helps to load the website more quickly.
Also, it reduces bandwidth usage and decreases the load on the web server. Cache is not automatically deleted, it stays on your system until you delete it manually.
Clearing the cache and cookies is the first thing you need to do when experiencing slow loading or formatting issues.
Here at LinuxAPT, we shall look into how to clear Cache and Cookies on the Google Chrome browser .
You can install Google Chrome on Manjaro Linux, if you don't already have it in your system.
You can view all the sites that have stored cookies in your Chrome browser. To do so, visit the following address in your Chrome browser:
chrome://settings/siteData
Now you will see all the sites that have stored cookies. From here, you can also remove a specific cookie by clicking the bin icon.
You can also view the Google Chrome cache stored in your system by running the command below in your Ubuntu Terminal:
$ ls /home/$USER/.cache/google-chrome/Default/Cache
This article covers how you can clear your Chrome browser's cache and cookies. Note that after clearing the cache, the webpages may appear slightly slower as it will need to retrieve all the files again. Also deleting the cookies will cause the saved user information to be lost. However, clearing the cookies and cache is still required sometimes to resolve the browsing issues.
How to clear cache in Chrome ?
1. Open Chrome and click the "More" icon. On Windows, macOS and Android, this is three vertically-stacked dots in the top-right; on iOS, it's three horizontal dots at the bottom.
2. On Windows and macOS, mouse over "More Tools" then click "Clear browsing data". This will open up a dialog box on top of a new Settings tab.
On Android and iOS, tap "History" then "Clear browsing data."
3. On Windows, macOS and Android, use the “Time range” drop-down menu at the top to select the period you want to clear. To clear the cache entirely, you can select "All time", but if you just want to delete files you've accrued recently, you can choose to clear from the last hour, 24 hours, 7 days or 4 weeks.
On iOS, you can't select a specific time range, only delete the cache in full, so skip this step. The remaining steps are the same across all platforms.
4. Make sure the "Cached images and files" checkbox is marked. This is the last of three checkboxes, along with those for clearing browsing history and cookies; more on these below, but you don’t need these checked just to clear the cache.
5. Click or tap the "Clear data" button. That’s it — any files retrieved within your selected time range are cleared from the cache.
How cache & cookies work ?