Words to the wise, Henry <rc*******@rain drop.co.ukwrote :
>Live HTTP headers does not show any expiry-date, at least none I can recognize...
Then you are probably not sending Expires headers with the images (nor Cache-Control headers with max-age parameters). Which will mean that the individual browsers are likely to make their decisions about whether to use a cached image based upon non-standard/non-documented internal algorithms, and that will likely produce different outcomes in different browsers (and under different browser configurations) , which is what you have been describing.
Sorry for the delay, was overly swamped and only managed to be able to
free some time last week to work on this.
Yes, that was the whole problem.
Adding Cache-Control with max-age solved the problem.
I tried to add a FileETag as well, but this does not seem to make any
additional difference, LiveHTTPHeaders does not even show that.
Would that even make sense to add a unique id to each requested
object? The images the code is requesting are already unique from
their path name.
>In the event that a particular browser reacts to the HTTP headers (or the absence of HTTP headers) you send with your images by deciding that it is never appropriate to use a cached image you can do all the image pre-loading you like with scripts (or with HTML) and it will make no difference to the situation at all (which also seems to be what you are describing). See:-
Yes, that was it, exactly.
My guess is that when we moved our application to the new hardware,
part of the updated Apache configuration got lost in the mists of the
matrix.
Thanks a lot to you for your very helpful suggestion, also thanks to
the others for pointing out several code imperfections, those are also
rectified.
--
Claus Dragon <cl*******@mpsa hotmail.com>
=(UDIC)=
d++ e++ T--
K1!2!3!456!7!S a29
"Coffee is a mocker. So, I am going to mock."
- Me, lately. 2 1365
CK wrote:
Words to the wise, Henry <rc*******@rain drop.co.ukwrote :
>>Live HTTP headers does not show any expiry-date, at least none I can recognize...
Then you are probably not sending Expires headers with the images (nor Cache-Control headers with max-age parameters). Which will mean that the individual browsers are likely to make their decisions about whether to use a cached image based upon non-standard/non-documented internal algorithms, and that will likely produce different outcomes in different browsers (and under different browser configurations) , which is what you have been describing.
Sorry for the delay, was overly swamped and only managed to be able to
free some time last week to work on this.
Yes, that was the whole problem.
Adding Cache-Control with max-age solved the problem.
I tried to add a FileETag as well,
Probably you mean _ETag_. HTTP/1.x does not specify a FileETag header, that
name is reserved for an Apache directive. Since the default value for that
directive is "INode MTime Size" already, there is hardly a need to use it. http://www.mnot.net/cache_docs/
but this does not seem to make any
additional difference, LiveHTTPHeaders does not even show that.
LHH does show the `ETag' header value, provided it is in the response. Try
for example http://pointedears.de/scripts/dhtml.js
Would that even make sense to add a unique id to each requested
object?
Yes, it definitely would.
The images the code is requesting are already unique from their path name.
Cache control headers are all about recognizing the difference between the
cached and the current resource even though the URL the latter is retrieved
with is the same that was used for retrieving the former.
PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f8************ *******@news.de mon.co.uk>
Words to the wise, Thomas 'PointedEars' Lahn <Po*********@we b.de>
wrote:
>CK wrote:
>Words to the wise, Henry <rc*******@rain drop.co.ukwrote :
>>>Live HTTP headers does not show any expiry-date, at least none I can recognize... Then you are probably not sending Expires headers with the images (nor Cache-Control headers with max-age parameters). Which will mean that the individual browsers are likely to make their decisions about whether to use a cached image based upon non-standard/non-documented internal algorithms, and that will likely produce different outcomes in different browsers (and under different browser configurations) , which is what you have been describing.
Sorry for the delay, was overly swamped and only managed to be able to free some time last week to work on this. Yes, that was the whole problem. Adding Cache-Control with max-age solved the problem.
I tried to add a FileETag as well,
Probably you mean _ETag_. HTTP/1.x does not specify a FileETag header, that name is reserved for an Apache directive. Since the default value for that directive is "INode MTime Size" already, there is hardly a need to use it.
Yes, I meant exactly ETag. I should not type when not completely
awake.
I actually wanted to exlude INode, for I am not sure how much the CMS
swaps data around, so the same images might get different inodes and
therefore be treated as new files although that is not the case.
>http://www.mnot.net/cache_docs/
>but this does not seem to make any additional difference, LiveHTTPHeaders does not even show that.
>LHH does show the `ETag' header value, provided it is in the response. Try for example http://pointedears.de/scripts/dhtml.js
Ok, so if there is no ETag header shown, there is no ETag specified.
>Would that even make sense to add a unique id to each requested object?
Yes, it definitely would.
>The images the code is requesting are already unique from their path name.
Cache control headers are all about recognizing the difference between the cached and the current resource even though the URL the latter is retrieved with is the same that was used for retrieving the former.
Ok, so the unique id is computed from inode, mtime and size and if one
of them changes, so does the unique id. Hmmm, I am still not sure I
understand how this could be made to work.
--
Claus Dragon <cl*******@mpsa hotmail.com>
=(UDIC)=
d++ e++ T--
K1!2!3!456!7!S a29
"Coffee is a mocker. So, I am going to mock."
- Me, lately. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: MALdito |
last post by:
hi everybody
let me say right from the start .. I´m not a coder ... "just" a designer!
that said .. here is my question:
I´m using dreamweaver´s built in preloader for a menu. it looks like this:
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length;
|
by: Bob |
last post by:
I usually use some "pre-load" code in my pages to preload graphics
that will be swapped. But, I'm thinking that rather than the
long, repetitive, once, for each graphic hardcoded stuff like this:
var bb_off = new Image();
bb_off.src = "images/bb_off.jpg";
....that I could have an array where I just listed the names of the
graphics, a loop, and code in the loop that cycles through each
entry in the array to create and pre-load the "on"...
|
by: jmhill |
last post by:
Has anyone else had this issue? Basically, the preload of images for a
rollover effect for the navigation is really really slow when using IE
6.0 but when i view the site using Netscape, it's fast like it should
be(no lag!)
My problem is that since 96% of users use IE, i need to figure a way
to fix this. Below is the javascript currently being used. The
arguments are passed in before the script is called.
MM_preloadImages(
|
by: Albert Spencil |
last post by:
I have tried several preload scripts found here; plus, some of my own.
The only thing that works is the unsophisticated loading of those
tiny images. The download consist of 100+ images amounting to 50+mb;
and, normally completes in less than 1 minute without preload (using
DSL). The preload terminates after 6 or 7
images and seems to time-out in the middle of an image. A reload will
download a few more, etc. I have used the <body...
|
by: Stacey |
last post by:
Hi,
I'm hoping for a bit of advise-- I have a (relatively, from the
point-of-view of this dilettante) complex script that attempts to preload
certain images in order to trigger one of a series of six slideshows
(rather than try to articulate, have a look here):
http://www.slack.net/~stacey/stestbed/homejs.jsp
Clicking any of the six blocks of text along the sides will begin a loop
of the corresponding slideshow.
| |
by: shapper |
last post by:
Hello,
I think to preload an image I should us something like:
img = new Image();
img.src = 'images/img.jpg';
Could someone tell me how to create a loop which would preload a list
of images?
Something like:
|
by: shapper |
last post by:
Hello,
I am working in Asp.Net 2.0 web sites and I need to preload some images
in my master pages and in the pages that use those master pages.
Could someone tell me how to do this?
Thanks,
Miguel
|
by: shapper |
last post by:
Hello,
How can I preload a few images of a page javascript?
Should I use CSS to do this? Is it even possible?
Thanks,
Miguel
|
by: matt9807 |
last post by:
The following is a script that I have written that preloads images for an image gallery. The problem is that the images only preload in Safari, other browsers load each image when it is called. Any ideas?
imgSeries = new Array();
curImg = '';
function loadkill() {
document.getElementById('loadingtxt').style.display = "none";
document.getElementById('imgone').src = imgSeries;
document.getElementById('imgtwo').src = imgSeries;
}
|
by: Revathi Balakrishnan |
last post by:
Hi
i have the used the below code to switch the button image on mouseover
and mouseout.
<html:button property="Button" value="Display" styleClass="displaybutton"
onmouseover="this.className='displaybutton displaybuttonover'"
onmouseout="this.className= 'displaybutton'"/>
CSS definition of displaybutton and displaybuttonover is shown below.
|
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...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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,...
|
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...
|
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...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |