Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript jQuery Basics (2014) Creating a Simple Lightbox Preparation

Question on browser's cache

Hi, Andrew says that the image has been resized dynamically on the page to 100 pixels and he says that when we click through an image it's already in our browser's cache. What does it mean? Why does the image is already in our browser's cache?

Thanks

2 Answers

rydavim
rydavim
18,814 Points

The browser cache is a temporary storage location on your computer. When you visited a web page you've used before, some of the files may already be available on your hard drive in the cache, meaning you don't have to download them again. This can reduce bandwidth usage and load times for sites that you visit repeatedly.

If you've heard of clearing your cache, that is when you delete all the files your browser has cached. While this means you'll have to download website assets again, it can sometimes fix problems associated with older cached files.

Happy coding! :)

Thanx