473,327 Members | 2,103 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

ASP.NET 2.0 image caching

Is there a way to cache an image without having to cache the whole page
(aspx) or the whole control (ascx) where the image is located?

Thanks,
-Boris
Jan 31 '06 #1
4 978
No answer from me.
I just want to know the answer too! :)

*** Sent via Developersdex http://www.developersdex.com ***
Jan 31 '06 #2
Hello Amelyan,
Is there a way to cache an image without having to cache the whole
page (aspx) or the whole control (ascx) where the image is located?


An image is not embedded in a control or page -- it's just a reference to
another file on the web sever which reqires another HTTP request to be fetched.
All you need to do is configure your web server to mark these files as cacheable,
if you find that this isn't the default behaviour or require more granular
control over your files' cacheability.

Cheers,
--
Joerg Jooss
ne********@joergjooss.de
Jan 31 '06 #3
How can I mark my whole "Images" directory as cachable in IIS 6.0?

"Joerg Jooss" <ne********@joergjooss.de> wrote in message
news:94*************************@msnews.microsoft. com...
Hello Amelyan,
Is there a way to cache an image without having to cache the whole
page (aspx) or the whole control (ascx) where the image is located?


An image is not embedded in a control or page -- it's just a reference to
another file on the web sever which reqires another HTTP request to be
fetched. All you need to do is configure your web server to mark these
files as cacheable, if you find that this isn't the default behaviour or
require more granular control over your files' cacheability.

Cheers,
--
Joerg Jooss
ne********@joergjooss.de

Jan 31 '06 #4
Hello Amelyan,
How can I mark my whole "Images" directory as cachable in IIS 6.0?


I don't have an IIS 6.0 available right now, but assuming it hasn't changed
since 5.x, you perform the following steps:

1. Run the IIS admin applet
2. Navigate to the image folder in the tree view
3. Open the folder's context menu and select Properties
4. Here, you can set an expiration date for all files contained in that folder.
You can also choose to set any other HTTP header, such as CacheControl: no-cache.

Hope that helps.

Cheers,
--
Joerg Jooss
ne********@joergjooss.de
Feb 1 '06 #5

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

Similar topics

2
by: Marwin | last post by:
Hi all, I have a database with 40GB of binary objects stored in image columns in two tables. Our database server is also used for another 15 databases. SQL Server caches the image-column,...
1
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...
4
by: Dennis Allen | last post by:
Hi. I have one image that has to show up in a html page several times. To save time, I'd like to preload this image. As an example: if (document.images) { tester = new Image()...
0
by: Scott Simes | last post by:
Keywords: image cache caching css stylesheet expire expiration asp.net c# ================================================== Note: I posted this on the caching ng but no one responded... I'm...
2
by: Mike Sobeiski | last post by:
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...
6
by: Suraj Joneja | last post by:
Hi All, I've an image control on my ASP.net page. This displays an image named 'Logo.jpg' in the location '~\Images'. Another application can change this image. It can select any image and...
4
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...
1
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...
9
by: Mark Denardo | last post by:
This is related to another post I submitted, but I'll be more precise this time. I have a web page that contains an Image webcontrol that loads its image by: Image1.ImageUrl="<username>.jpg",...
4
by: vunet.us | last post by:
Hi, I found a bug in IE6, though it is known already. If I have a CSS background property set to some image, such as background:url(myimg.gif);, and I apply this property to some html element,...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.