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

HTML Introduction to HTML and CSS (2016) HTML: The Structural Foundation of Web Pages and Applications Image Tags

why 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
Dan Weru
47,649 Points

Hello, it could be that your browser is caching the image. Try clearing your browser history.

Rod Sanati
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Rod Sanati
Full Stack JavaScript Techdegree Graduate 20,177 Points

I'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.

Same thing here.

I 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.