473,387 Members | 1,621 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,387 software developers and data experts.

Images not put in cache

Hi,

All images on my ASP.Net web site are reloaded almost each time I visit a
page. My chache setting on IE is set to Automatically. When I visit another
web site, images are rarely reloaded so it's fast. This slows down my site
and it's really a pain in the neck.

All my web pages are dynamic and are built from a database. There no meta
field or Response.Expires...

So I was wondering if ASP.Net has something to do with this? How can I force
images to be put in cache?

Test by yourself to see what I'm talking about: http://www.nuouz.com

Thanks for any help

Stephane


Mar 2 '06 #1
6 1425
Roy
Hi Stephanie,

If you're using the 2.0 framework, then you're experiencing the same bug
I've been dealing with for a couple months (since we upgraded). I've
tried everything, ranging from setting NO content expiration date in IIS
to hardcoding cache settings in the web code, all to no avail.

I really do chalk it up to a bug, though it seems to be a sporadic one
as not all folks seem to have this problem. Could be an interaction bug
between 2.0 framework and web server?

-Roy

*** Sent via Developersdex http://www.developersdex.com ***
Mar 2 '06 #2
Could that be because the view state field? That's the only thing that I see
changing in all my pages.

Thanks

Stephane

"Stephane" wrote:
Hi,

All images on my ASP.Net web site are reloaded almost each time I visit a
page. My chache setting on IE is set to Automatically. When I visit another
web site, images are rarely reloaded so it's fast. This slows down my site
and it's really a pain in the neck.

All my web pages are dynamic and are built from a database. There no meta
field or Response.Expires...

So I was wondering if ASP.Net has something to do with this? How can I force
images to be put in cache?

Test by yourself to see what I'm talking about: http://www.nuouz.com

Thanks for any help

Stephane

Mar 2 '06 #3
Roy
Possibly. I don't see how, but possibly.
I've pretty much been forced to eliminate all but the most essential
imagery from my work sites (which fortunately don't need to be all that
"pretty" to begin with given the user-base, but still).

RE: Images not put in cache
From: Stephane

Could that be because the view state field? That's the only thing that I
see
changing in all my pages.

Thanks

Stephane

*** Sent via Developersdex http://www.developersdex.com ***
Mar 2 '06 #4
They're being cached here okay. Though looks like several
of them are dynamic images referencing aspx files. The browser
can't cache these normally. It goes by URL, so it's going to call aspx
files each time and run them to get another stream.

Is your client computer date set right?

Another reason it may be slower is that you have too many
object references. Even when they load of the cache the
browser still needs to make a connection for each and
determine whether it needs to use the cache or re-load.
This can be expensive, especialy if the site is served from
a very distant location, nothing to do with ASP.NET here.
Looks like this is hosted somehwere in SoCal, so if it's being
used by someone in Europe it's going to be slow. For that
you need to reduce the number of object references to get
it rendered there faster.


"Stephane" <St******@discussions.microsoft.com> wrote in message
news:D0**********************************@microsof t.com...
Hi,

All images on my ASP.Net web site are reloaded almost each time I visit a
page. My chache setting on IE is set to Automatically. When I visit another web site, images are rarely reloaded so it's fast. This slows down my site
and it's really a pain in the neck.

All my web pages are dynamic and are built from a database. There no meta
field or Response.Expires...

So I was wondering if ASP.Net has something to do with this? How can I force images to be put in cache?

Test by yourself to see what I'm talking about: http://www.nuouz.com

Thanks for any help

Stephane

Mar 2 '06 #5
Hi,

Thanks for your answer.

What do you mean by "you need to reduce the number of object references to get
it rendered there faster."? What is an object reference?

Thanks

Stephane

"Raymond" wrote:
They're being cached here okay. Though looks like several
of them are dynamic images referencing aspx files. The browser
can't cache these normally. It goes by URL, so it's going to call aspx
files each time and run them to get another stream.

Is your client computer date set right?

Another reason it may be slower is that you have too many
object references. Even when they load of the cache the
browser still needs to make a connection for each and
determine whether it needs to use the cache or re-load.
This can be expensive, especialy if the site is served from
a very distant location, nothing to do with ASP.NET here.
Looks like this is hosted somehwere in SoCal, so if it's being
used by someone in Europe it's going to be slow. For that
you need to reduce the number of object references to get
it rendered there faster.


"Stephane" <St******@discussions.microsoft.com> wrote in message
news:D0**********************************@microsof t.com...
Hi,

All images on my ASP.Net web site are reloaded almost each time I visit a
page. My chache setting on IE is set to Automatically. When I visit

another
web site, images are rarely reloaded so it's fast. This slows down my site
and it's really a pain in the neck.

All my web pages are dynamic and are built from a database. There no meta
field or Response.Expires...

So I was wondering if ASP.Net has something to do with this? How can I

force
images to be put in cache?

Test by yourself to see what I'm talking about: http://www.nuouz.com

Thanks for any help

Stephane


Mar 2 '06 #6
Images, script files, all those aspx references, global style sheets,
all those are object references for which the browser needs to
make connections.

"Stephane" <St******@discussions.microsoft.com> wrote in message
news:C4**********************************@microsof t.com...
Hi,

Thanks for your answer.

What do you mean by "you need to reduce the number of object references to get it rendered there faster."? What is an object reference?

Thanks

Stephane

"Raymond" wrote:
They're being cached here okay. Though looks like several
of them are dynamic images referencing aspx files. The browser
can't cache these normally. It goes by URL, so it's going to call aspx
files each time and run them to get another stream.

Is your client computer date set right?

Another reason it may be slower is that you have too many
object references. Even when they load of the cache the
browser still needs to make a connection for each and
determine whether it needs to use the cache or re-load.
This can be expensive, especialy if the site is served from
a very distant location, nothing to do with ASP.NET here.
Looks like this is hosted somehwere in SoCal, so if it's being
used by someone in Europe it's going to be slow. For that
you need to reduce the number of object references to get
it rendered there faster.


"Stephane" <St******@discussions.microsoft.com> wrote in message
news:D0**********************************@microsof t.com...
Hi,

All images on my ASP.Net web site are reloaded almost each time I visit a page. My chache setting on IE is set to Automatically. When I visit

another
web site, images are rarely reloaded so it's fast. This slows down my site and it's really a pain in the neck.

All my web pages are dynamic and are built from a database. There no meta field or Response.Expires...

So I was wondering if ASP.Net has something to do with this? How can I

force
images to be put in cache?

Test by yourself to see what I'm talking about: http://www.nuouz.com

Thanks for any help

Stephane


Mar 3 '06 #7

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

Similar topics

2
by: Dave Griffiths | last post by:
Hi all Very new to JavaScript, I am trying to cache a number of images as the page loads, is there a max number of images or memory usage before the browser stops caching. My PC has 1G ram so...
22
by: Fabian | last post by:
var preload1 = new Image(); preload1.src = "/pic/yay.gif"; var preload2 = new Image(); preload2.src = "/pic/nay.gif"; The above is meant to preload image files, yes? Problem is, it doesnt seem...
11
by: Penelope Baker | last post by:
Greetings: I cannot seem to get IE 6.0 to pre-cache my rollover images. Every time the user rolls over a link, it rereads it from the server, even though it is well into the cache by that time....
7
by: Vinay | last post by:
Hi All: I have a small application that stores images either in the database or as files (depending on the user preference). I'm in the process of providing a web interface to this application....
2
by: billrdio | last post by:
I am trying to make a JavaScript animation of real-time images - i.e. images that will periodically change on the server. The problem I am having is that the JavaScript animation I have created is...
0
by: Jim | last post by:
I know this is a little off-topic for C#, but I'm writing my user controls with C#, and the other more HTML-related groups looked like there hasn't been activity in days for some reason......
3
by: sviau | last post by:
any settings i need to set so that IE and other browsers cache the images properly, especially during a preload. it seems that using IE, the images are being requested each time when refresh...
5
by: David P. Donahue | last post by:
Currently, when I want to display an image from a database in my website, I reference another page with a query string argument of that image's unique ID in the table. Then that other page grabs...
3
by: wardemon | last post by:
Hi All, I have a aspx page named: ImageProcess.aspx that creates a thumbnail version of an image by passing the ImagePath, width, and height. The ImagePath is taken from a table from a database,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.