WebControl/Cache-control question...

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I am new to WebControls, I have created a WebControl that is used to present
an image, the image bing presented is created on runtime, each client side
button click causes the image to change, this require to prevent this image
from being cached, I have tried to play around with:
Context.Response.AddHeader("Cache-Control", ... )
and with
Context.Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache)
BUT Still, the image is being extracted from the cache and the changes
cannot be seen...

What am I doing wrong here?
How can I prevent the image from being cached?

Any help, samples or pointers will be appreciated.
 
Do you create the image phisically? or do you just write the result of the
changes?

If you are writing the image to the disk you only need to delete any file
wich name contains a patern and create the new one with a different name.
That's the only option I can see as the caching issue it doesn't just depend
on the server but in the client browser.

Joaquin
 
Back
Top