how to disable caching pictures

  • Thread starter Thread starter Ufit
  • Start date Start date
U

Ufit

I have image control with jpeg url on my asp.net web. That jpeg has the same name but changes
Problem is that web is caching the old one even if its contents have changed.
I cannot change the name of that pic but I must display current image.
Please help with some good solution. Thanks

Ufit
 
Eliyahu Goldin said:
I trick the browser by adding a random query parameter to the image url:

'myPicture.jpeg?' + (new Date()).getMilliseconds()

Eliyahu

Checked - doesn't work. Any other ideas?
Thanks

Uf
 
I trick the browser by adding a random query parameter to the image url:

'myPicture.jpeg?' + (new Date()).getMilliseconds()

Eliyahu
 
Does work. What did you do?

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

Big thicks are made up of lots of little thins.
 
Kevin Spencer said:
Does work. What did you do?

--
It doesn't with other non jpeg pics too but I solved that with other trick.
Anyway other question - how to display
a webform in separate window from main form instance?
F.ex.
Dim f as New WebForm2
WebForm2. ??????
Thanks for help

Ufit
 
Back
Top