stupid caching in asp.net

Posted by kusanagi on Stack Overflow See other posts from Stack Overflow or by kusanagi
Published on 2009-10-28T11:49:53Z Indexed on 2010/05/24 11:31 UTC
Read the original article Hit count: 373

Filed under:
|
|

i use such code

string.Format("<img src='{0}'><br>", u.Avatar);

u.Avatar-it's like '/img/path/pic.jpg'

but in this site i can upload new image instead old pic.jpg. so picture new, but name is old. and browser show OLD picture (cache). if i put random number like /img/path/pic.jpg?123 then works fine, but i need it only ufter upload, not always. how can i solve this?

?????????? ??????

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about image