473,654 Members | 3,115 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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

Nov 18 '05 #1
2 6952
Make sure it is cache issue.

http://support.microsoft.com/default...b;en-us;811431

chanmm

"Mike Sobeiski" <mi****@nospam. com> wrote in message
news:OY******** ******@tk2msftn gp13.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

Nov 18 '05 #2
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" <mi****@nospam. com> wrote in message
news:OY******** ******@tk2msftn gp13.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

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2101
by: Grunt | last post by:
Hi, I have been trying to put together a rotating banner. the code works but I am having a problem with the caching of the banner images. no matter what I try the page is constantly reloading the images, even worse they are not loading completely. This version includes a (vain) attempt at forcing the banner images to cache. Apart form the caching problem the scripting seems to work Any help welcomed:
1
1568
by: vip001 | last post by:
Hello This is the site developed for one of my client 'Direct2deal.com' (http://www.direct2deal.com) This site has lots of images and hence downloading time of home page i much more..Is there a way , where i can cache these images i javascript????? Your suggestions will be highly appreciate
7
1964
by: Nathan Sokalski | last post by:
I have been trying to find a way to prevent the images on my site from being cached on the user's machine. I want to avoid this because the images used in an Image control often change, yet have the same name. When they are cached, the cached image is displayed which is not what I want. I thought that using Response.Cache.SetCacheability(HttpCacheability.NoCache) would have achieved this, but it seems to only prevent the .aspx file from...
1
2267
by: Kamyar Souri | last post by:
How can I disable Image caching? I use ASP.NET Image web control that it's ImageUrl is constant but the image is being changed by the code. because of cachin I always see the same image in my Image web control. Thank you in advance.
4
2685
by: Jake | last post by:
Does cookieless session state (with the sessionid embedded into the url) interfere with the browser's retrieval of cached images from one session to the next? Does the sessionid embedded into the url effectively limit client-side image caching to the lifetime of the session? Thanks Jake
1
1890
by: Giggle Girl | last post by:
Hello, I am helping to design a web application that uses 167 little icons on various pages in a framed environment. As is, the app loads each icon on a page by page basis, and if an image changes (like a "plus" becomes a "minus" when a folder icon is expanded) is does a document.all.src="picsV/minus.gif" which I am pretty sure goes and grabs the image at that moment, making no use of caching images at all.
9
6894
by: =?Utf-8?B?SmVmZiBCZWVt?= | last post by:
I'm working on a litigation web app where users will review images of case documents. One of the requirements is that we either prevent the images from being cached on the clients machine (in temp directory or anywhere else) or we encrypt the images somehow. I'm guessing that encryption will not work, but is there a way to prevent caching? Also, is there a way to prevent printing on a current page? We're already not showing the menu...
1
1135
by: Sems | last post by:
Hi I have a masterpage that has an image in it. Whats the best way to cach the image to stop it from being reloaded each time a new page is displayed? Will the masterpage take care of this for me or do I have to manage it? If so how would you suggest? My site is written using .Net 2.0 and I have very little control over
0
8376
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8290
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8489
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8594
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7307
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6161
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
2716
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1916
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1596
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.