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 trialDevin Kelly
7,343 Pointswhy doesn't the placeimg url change when webpage is refreshed?
I copied and pasted http(s)://placeimg.com/400/400/nature (with and without the "S") into the img src but the image doesn't change. It just loads the same one over and over when the page is refreshed. Any help would be appreciated.
thanks!
3 Answers
Dan Weru
47,649 PointsHello, it could be that your browser is caching the image. Try clearing your browser history.
Rod Sanati
Full Stack JavaScript Techdegree Graduate 20,177 PointsI'm having the same issue, the picture is being cached, refreshes to a new one after clearing browser cache but still the issue persists every time you refresh.
I'm wondering if there is a way to auto-clear browesr cache in the HTML code or it's specifically controlled only by the browser settings.
Devin Kelly
7,343 PointsSame thing here.
Devin Kelly
7,343 PointsI just tested it in Internet explorer and it works normally. It's not working correctly in chrome however. I'm guessing it's one of the security settings I have on Chrome since it keeps wanting to use httpS:// instead of http://
Hope that helps.