Re: ASP.NET Image Caching Problem (How to Disable it?)

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Lenard Gunda (frenzy_at_fbi.hu)
Date: 08/07/04


Date: Sat, 7 Aug 2004 20:28:48 +0300

I had a similar problem. But I think it's more a client side issue. Anyway
...

... I solved it with a rather unusual way. Generate a unique ID string from
letters and/or numbers, and append it to the image as a HTTP GET parameter.
Like:

http://hostname/path/image.gif?uid=4235236

Make sure it changes all the time. A bunch of random numbers should do the
trick. And no more caching problems. (actually, I used it with an .aspx
page, that generate it's output everytime, but it doesn't matter). If it
really is a normal image, a parameter like in the example link above will
not disrupt the download.

-Lenard

"Mike Sobeiski" <mickey@nospam.com> wrote in message
news:OYKmf$IfEHA.1692@tk2msftngp13.phx.gbl...
> Hi There!
>
> I'm developing a web project that requires to produce charts off the
> database and output it as image and presented to the user in a HTML
> document. (NOTE: Image is not directly streamed, but just linked in HTML
> output).
>
> The problem is, when user want to see the graph by changing parameters,
they
> always have to click refresh to see the updated graph image. Although this
> problem doesn't occur on the local server.
>
> So I'm just wondering, how to turn off the image caching in my ASP.NET
> project so that users don't need to click Refresh every time they change a
> parameter to see a different chart image?
>
> Many thanks!
>
> Mike
>
>
>



Relevant Pages

  • RE: How do I create a status board
    ... XML or web expert; ... HTML is pretty much old news, though I'm not current on what's the preferred ... I work in a military command center, and we have several dozen checklists ... don't know how to force the status board to refresh automatically. ...
    (microsoft.public.access.gettingstarted)
  • Re: Quality of text?
    ... be fixed with a command like "refresh size" in your html editor. ... However, if I hit Save Target As, it is an .htm. ... It has a page refresh but I ...
    (comp.graphics.apps.photoshop)
  • Re: access Outlook Web Access without authentication
    ... Because I didn't want to set up a webserver, the file is hosted on our FTP ... In the same HTML file we load the calendar into an iframe: ... I've never use ftp:// in a meta refresh tag like that. ... getting via ftp) on the default web site of your Exchange server? ...
    (microsoft.public.exchange.misc)
  • Re: really dumb error but its stumped me
    ... rely on that the iframe stays blank, ... I'd like to use a default value I really would, but the html page that I'm loading into the iframe wants to be fully reloaded each time the browser is refreshed, like it deserves to be. ... Firefox doesn't treat it like that though, it doesn't fully reload the iframe. ... If you perform that test on Firefox, you'll see that whatever the initial 50/50 choice is, that's what it will display on every single refresh. ...
    (comp.lang.javascript)