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 trialAndrew Harrison
703 PointsImage Placeholder
So I inserted the placeholder image URL, saved and it changed the image. However whenever I refresh it just maintains the same image and I have to add/remove s from http to get it to generate a new image????
Thoughts?
1 Answer
Steven Parker
231,269 PointsYour browser is probably caching the image. Depending on the browser, you may have an optional way to refresh that discards the cache, or you may have a "clear cached images" function.
You could also add a small JavaScript component to add a random query string to the URL to prevent caching. I provided some sample code for this in a previous similar question.