开发者

Why pass a query parameter to an image file (/img/button.png?123456789) from inside a HTML page?

开发者 https://www.devze.com 2023-01-14 10:12 出处:网络
I saw this in a HTML template for a web app: <img alt=\"mybutton\" src=\"/img/button.png?123456789\" />

I saw this in a HTML template for a web app:

<img alt="mybutton" src="/img/button.png?123456789" />

What I didn't understand was why the ?123456789 would be passed to the image file? (in the开发者_如何学Python actual app, the number that was actually passed seemed to be customized to the user's session or unique id perhaps)


It forces the browser to skip its cache, and retrieve a fresh copy from the server.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号