TechKnowSurge
CompTIA Tech+ 3.5 CompTIA A+ Core 2 2.10 CompTIA A+ Core 2 3.1
VideoComputeFree

DEMO: Cookies and Caches

Cookies and browser cache are temporary data storage mechanisms that improve the web browsing experience but can also cause access issues that require troubleshooting. Understanding what they are and how to manage them is an essential skill for everyday computer use and IT support.

Complete this video to capture a CTF flag worth 1 point.

About this video

Cookies are small data files that websites write to a user's local machine to retain session information between visits. Common use cases include preserving shopping cart contents, maintaining login states, and storing user preferences — all of which reduce friction and create a more seamless browsing experience. However, cookies also carry a privacy tradeoff: third-party sites can read cookie data to track browsing behavior and serve targeted advertising, making it important for users to understand both the utility and the risk associated with them. Browser caching is a related but distinct mechanism in which static web assets — such as images, scripts, and stylesheets — are saved locally so they do not need to be re-downloaded on each visit. This significantly speeds up page load times for returning users. Dynamic content, such as live reports or real-time data feeds, cannot be cached in the same way because it must be fetched fresh from the server. Cached files typically carry an expiration date, after which the browser checks for an updated version before serving the locally stored copy. Both cookies and cached data can become the source of browser errors when stored information becomes outdated or conflicts with updates made to a website. A common troubleshooting step in IT support is clearing the browser's cookies, cache, and browsing data to eliminate stale files and restore expected functionality. In Google Chrome, this is done through the Privacy and Security section of the browser settings, where users can selectively delete cookies, site data, and cached images and files.

What you'll learn

What's covered

Cookies & Cache

Aligned to

CompTIA Tech+
3.5 Given a scenario, configure and use web browsers.
CompTIA A+ Core 2
2.10 Given a scenario, install and configure browsers and relevant security settings.
3.1 Given a scenario, troubleshoot common Windows OS problems.

Key terms

Browser Cookie
A small piece of data stored on a user's computer by a website to remember information such as login status or shopping cart contents between sessions.
Cache
A small, high-speed storage area that holds frequently or recently accessed data so it can be retrieved faster than fetching it from a slower source; CPU caches (L1, L2, L3) reduce processor wait time for main memory, while browser caches store local copies of web resources to speed up page loads.
Cached Data
Web content, such as images or files, downloaded from a site and stored locally so it does not need to be re-downloaded on subsequent visits.
Browser History
A record of websites and pages a user has previously visited, stored by the web browser.
Troubleshooting
A systematic process of identifying and resolving problems with hardware, software, or network services.

Topics

Browser Cookies Browser Cache Web Browsing Troubleshooting End User Support Data Storage

Transcript

Cookies

Cookies and caches are both tools that can really help advance our experience when we're dealing with different websites and when we're dealing with our browser. It also can cause some problems, so it's important to know what they are and how to manage caches.

Let's first of all talk about cookies — and I'm getting hungry now. Cookies are a way that a website can store little pieces of information on your computer. Why would we want that? Well, for one, let's say I go to a site and I want to purchase something, and I load up my cart with all the things that I want to purchase, and then my browser crashes, or I get distracted and walk away, or my computer shuts off, or something happens. Then I go back to that site and I might lose all of the stuff that I researched and put in my cart that I want to purchase. What the browser can do, or this website can do, is store a little bit of information on your computer — information of what you've got in your shopping cart. That's great, because now when I go back to that site my shopping cart is already populated. Or let's say I'm logged into a site: maybe it automatically logs me into that site, or whatever information we want to store to make sure that we can gain access to that site and give us extra features and extra information to that browser, and pick up things where we left off. That little piece of information that gets saved is called a cookie.

For the most part, to a large degree, it's actually something that really serves us well. There are some downsides to these cookies, though. When you visit sites, they're reading information off of your computer, they're reading these cookies. One thing that can happen is that some of these programs can go in, or some of these sites can go in, and see where you've browsed in the past, and then start marketing towards you or using that information somehow. So there's both a pro and a con to these cookies when it comes to browsing different sites.

Caching

Another thing that can happen is caching. Caching is when we visit a site and files get stored on the computer, and there's some content that can be cached and some content that can't be cached.

Let me give you an example. Let's say I go to an online course and it has some videos, or it has some pictures that I am visiting. Those pictures might get stored locally onto your computer, so that way the next time I go to that site it doesn't have to redownload that information — it's already on my computer. Whereas if it's dynamic content, like maybe it's a report that I pull, then that can't really be cached on your local computer, because it needs to be up to date every time I visit that site.

If information does get cached on your local machine, usually there's some sort of expiration date on that, or expiration time, that once it gets to that expiration time it's got to redownload that file again, or maybe it just checks in to see, hey, is there an update to this file? So caching can really help speed up our accessing of these different sites by not downloading the same information over and over again.

When cookies and caches cause problems

Now, there is a downside to this. One of the downsides that we have is that if there's some information that does get cached, and then when we go and visit that site we're having some issues because of that cached information. So whether it's the cookies or cached information, it could be old information and needs to be updated. Maybe they've updated the site that we're trying to go to and our cache isn't updated, or maybe there's some sort of issue like that and we're not seeing exactly what we should be seeing. So sometimes we have to go in and clear our cache and our cookies in order to gain access to a site the way it's supposed to be presented to us.

Let me give you just a short little example of this. Maybe you have signed up for some online class, but then when you get into that class it's blank and it's not showing up. So you hit refresh on their web browser and it's not redownloading that information, and so something is a problem. You call up tech support, and one of the things they may ask you to do is to clear your browser history, clear your cache, clear your cookies, clear all of that, to make sure that you're getting the experience that you should be getting. A lot of times when you do that, you actually fix the issue, whatever issue that you're having. I don't see that as much of an issue as much anymore, but it certainly has been in the past, and it's certainly something that we still do when we're troubleshooting: clearing that history, clearing that cache, clearing the cookies.

Clearing them in the browser

I'm on my web browser here and I'm going to click on the settings. I'm going to get into the settings, and for Chrome it's under this privacy and security, so I'm going to click on privacy and security. As we see right here, we have delete browsing history, or delete browsing data, so I'm going to just go into that. It's not just the browsing data, it's cookies and other site data, and so this might be something that we want to delete or get rid of. And then same thing, cached images and files. So we can delete this data — if I delete it, then it will wipe that out. I'm not going to do this right now, but this is something that we could do to clean up files so that way we can make sure that we have some clean settings that we're working with.

About TechKnowSurge

TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.

Explore free tools and programs →