[Zope] - img src question

Michael Bernstein mbernstein@profitscape.net
Mon, 25 Jan 1999 16:44:16 -0800


When I call an image from the index_html method in the root by using
<img src="Images/myimage.gif">, the image is retrieved as
http://localhost:9673/Images/myimage.gif

But when I go to a subdirectory that does not have it's own index_html,
it inherits the index_html method from it's parent, but retrieves the
image as http://localhost:9673/Subdir/Images/myimage.gif, forcing the
browser to re-download the image.

How do I get Zope to evaluate the images URL as relative to the root,
instead of chaining the Folder off of the current Directory (BTW I just
realized that it works this way because folders are methods too, and
thus subject to acquisition, very cool)

Ok, so what is the solution to getting the browser to cache images for
reuse?

Michael Bernstein.