HTML Introduction to HTML and CSS Adding a New Web Page Write the CSS

Ariana Kautz
Ariana Kautz
Full Stack JavaScript Techdegree Student 1,657 Points

My linked image src from doesn't generate different image every time. It's always that one image.

<img src="" It doesn't generate different image when I refresh it. It's always that one image. Thank you.

1 Answer

Michael Hulet
Michael Hulet
Treehouse Moderator 46,967 Points

It's likely that your browser is just assuming that it will always get the same image whenever it goes to that URL and caches it so that it can save some data and time and not actually make another request. Try clearing your browser's cache and try again. Alternatively, you can add the following code to your page's head to tell the browser it should never cache your page:

<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate"/>
<meta http-equiv="Pragma" content="no-cache"/>
<meta http-equiv="Expires" content="0"/>