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 trialRJ SL
2,467 PointsPlaceIMG question
I'm wondering why I'm not getting a random picture when I refresh.
<header> <img src="http://placeimg.com/400/400/animals" alt="Drawing of Jane Smith" class="profile-image">
1 Answer
Kieran Barker
15,028 PointsThe reason you're needing to hold Ctrl when you refresh is because your browser is caching the image. Hitting Ctrl+F5 refreshes your cache, and you therefore see a new image. If you just refresh normally without holding Ctrl, your cache is not refreshed, and therefore you see the cached image.
RJ SL
2,467 PointsThank you Kieran!
RJ SL
2,467 PointsRJ SL
2,467 PointsI figured it out. You need to hold ctrl when you click refresh....but why?