RE: [Zope] Simple (I hope) question re: images
Just out of curiosity, is this true (the caching "problem") if a "base href" is included in the document's <head>? Jeff
-----Original Message----- From: Lennart Regebro [mailto:lennart@regebro.nu] Sent: Tuesday, January 29, 2002 7:30 AM To: zope@zope.org Subject: Re: [Zope] Simple (I hope) question re: images
From: "Max M" <maxm@mxm.dk>
<img src="images/example.gif">
Very bad idea, since you then get a relative path to the images, emaning that images doens't get cached properly, since the webbroswer thinks /image/bla.gif is another picture than /foo/bar/image/bla.gif. But if you instead write: <img src="/images/example.gif"> it would work.
However, in both these cases you don't automatically get the height, with and alt-text in the image-tag.
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
From: "Jeffrey Robinson" <Jeffrey.Robinson@MCICoach.com>
Lennart Regebro:
When you have a relative path to the image that image doesn't get cached properly, since the webbroswer thinks /image/bla.gif is another picture than /foo/bar/image/bla.gif, while in reality they are the same.
Just out of curiosity, is this true (the caching "problem") if a "base href" is included in the document's <head>?
Uhm, how do you mean? Do you mean that you should include a base href that points to the root always, regardless of the document location? That can't be good.
participants (2)
-
Jeffrey Robinson -
Lennart Regebro