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

My Image will not change on my website

I have gone into my developer tools and checked to see if the "disable cache" was selected for my main image, but it was not. For whatever reason, the main image on my webpage will not randomly generate a new photo. It remains the same picture every time I refresh. I have tried re-entering the src link but it makes no difference. I can not seem to get this to work.

1 Answer

Depends on the OS and browser but for Mac/Chrome you can try force reload: Shift+Cmd+R

It worked when I forced reload, but it will only change the photo when I do that. Is there no other way to make this automatic without having to force-reload every time? -thanks!

P.s.- I use chrome