Why won't my images cache in browser?

P

Paul W

Hi - using IE for testing purposes. My rendered HTML is shown below. Seems
simple enough but the browser goes to the server each time it needs to show
an image - even though I try to pre-cache them. I don't get any Javascript
errors.

Thanks,

Paul.
-------------------------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>
blah blah </title>
<meta content="Microsoft FrontPage 6.0" name="GENERATOR">
<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
<LINK href="Tennis.css" type="text/css" rel="stylesheet">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5"
name="vs_targetSchema">
<script language="javascript">
<!--
//need to precache all images that might be used
if (document.images)
{
var image1=new Image
image1.src="images/bgball.bmp"
var image2=new Image;
image2.src="images/bgcross1-3.bmp"
}

function changeimage(el) { //simplified version
el.src="images/bgball.bmp"
}
......
 
T

Thomas A. Rowe

Review your IE settings for Temp. Internet Files. Also unless you use Absolute URLs to all images,
they will not be reused from cached unless called from the same level within the web.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WebMaster Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
P

Paul W

Thanks for the response. To clarify: I'm actually talking about a single
viewing of a single page. The page has a calendar that allows you to select
multiple dates. Each date you click is indicated by an image ("bgball.bmp")
appearing over that date. However, each and every time I click a date, I see
that the browser goes to the server for the image - very annoying!

If you care to see the problem, go to www.mystictennisbookings.com and click
on 'visitor'.

Thanks,

Paul.

(My IE 6.0 settings for 'check for newer versions' is 'automatic')
 
R

Rob Giordano \(Crash Gordon®\)

javascript?



Paul W said:
Thanks for the response. To clarify: I'm actually talking about a single
viewing of a single page. The page has a calendar that allows you to select
multiple dates. Each date you click is indicated by an image ("bgball.bmp")
appearing over that date. However, each and every time I click a date, I see
that the browser goes to the server for the image - very annoying!

If you care to see the problem, go to www.mystictennisbookings.com and click
on 'visitor'.

Thanks,

Paul.

(My IE 6.0 settings for 'check for newer versions' is 'automatic')
 
T

Thomas A. Rowe

This could be a .net issue.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WebMaster Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
M

Murray

Tom:

Are you *CERTAIN* about this?

I have an image named foo.gif. It seems to me that no matter where on my
site I link to that image, it's pulled from the cache. As far as I can
determine, the path information is not stored in the cache.
 
T

Tom Pepper Willett

I just tested our web sites, and have a logo I use on different sites and
different levels of folders, but with the same name.

Searching for it only brings up one instance in the cache.
--
===
Tom "Pepper" Willett
Microsoft MVP - FrontPage
---
About FrontPage 2003:
http://office.microsoft.com/home/office.aspx?assetid=FX01085802
FrontPage 2003 Product Information:
http://www.microsoft.com/office/frontpage/prodinfo/default.mspx
Understanding FrontPage:
http://msdn.microsoft.com/office/understanding/frontpage/
===
| Tom:
|
| Are you *CERTAIN* about this?
|
| I have an image named foo.gif. It seems to me that no matter where on my
| site I link to that image, it's pulled from the cache. As far as I can
| determine, the path information is not stored in the cache.
|
| --
| Murray
| ============
|
| | > Review your IE settings for Temp. Internet Files. Also unless you use
| > Absolute URLs to all images, they will not be reused from cached unless
| > called from the same level within the web.
| >
| > --
| > ==============================================
| > Thomas A. Rowe (Microsoft MVP - FrontPage)
| > WebMaster Resources(tm)
| >
| > FrontPage Resources, WebCircle, MS KB Quick Links, etc.
| > ==============================================
| > If you feel your current issue is a results of installing
| > a Service Pack or security update, please contact
| > Microsoft Product Support Services:
| > http://support.microsoft.com
| > If the problem can be shown to have been caused by a
| > security update, then there is usually no charge for the call.
| > ==============================================
| >
| > | >> Hi - using IE for testing purposes. My rendered HTML is shown below.
| >> Seems simple enough but the browser goes to the server each time it
needs
| >> to show an image - even though I try to pre-cache them. I don't get any
| >> Javascript errors.
| >>
| >> Thanks,
| >>
| >> Paul.
| >> -------------------------------------
| >>
| >> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
| >> <HTML>
| >> <HEAD>
| >> <title>
| >> blah blah </title>
| >> <meta content="Microsoft FrontPage 6.0" name="GENERATOR">
| >> <meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
| >> <LINK href="Tennis.css" type="text/css" rel="stylesheet">
| >> <meta content="JavaScript" name="vs_defaultClientScript">
| >> <meta content="http://schemas.microsoft.com/intellisense/ie5"
| >> name="vs_targetSchema">
| >> <script language="javascript">
| >> <!--
| >> //need to precache all images that might be used
| >> if (document.images)
| >> {
| >> var image1=new Image
| >> image1.src="images/bgball.bmp"
| >> var image2=new Image;
| >> image2.src="images/bgcross1-3.bmp"
| >> }
| >>
| >> function changeimage(el) { //simplified version
| >> el.src="images/bgball.bmp"
| >> }
| >> .....
| >>
| >
| >
|
|
 
T

Thomas A. Rowe

Yes, I was very certain about this, however I see that IE6 (SP2) has changed the way it caches
images.

In the past I would see something like the following:

blank.gif
blank(1).gif
blank(2).gif

etc. as you moved between different level in the same site unless a Absolute URL was use to the
image. IE6 (SP2) now stores the reference as a Absolute URL.

IE6 (SP2) still create two cache images for the same file if the path is specified using a different
CaSe of the file or folder name in your HTML code.

Example:

images/Pages/blank.gif
images/pages/blank.gif

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WebMaster Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
T

Thomas A. Rowe

However, case in the past was not an issue.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WebMaster Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
M

Murray

Right. On Windows....

--
Murray
============

Thomas A. Rowe said:
However, case in the past was not an issue.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WebMaster Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top