开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜