On 16 Apr 2001 20:36:42 +0400, Oleg Broytmann wrote:
On Mon, 16 Apr 2001, Andy McKay wrote:
Ouch expensive overhead, you can modify FSCounter for this, but really this is what log files are for.
Setup: /img - Folder with images standard_html_header - DTML Method that calls <img src="img/myImg.gif">
Now the log is full of access to /xxx/img/myImg.gif, /yyy/img/myImg.gif etc. But in reality this is the same image.
Better do it from Zope.
Or simply change the URL. If you call images by their absolute URL whenever possible you will not only make it easier to count them in your logfiles, but you will also help the browser cache properly. When the browser (and web proxies) see relative urls such as above, they have to retreive the new relative image, since they don't realize they already have the image. if you use the method I propose (and use, btw), they see an absolute path, and having already retreived that image, use the cache. So, you could put all your images in /img and then call <img src="/img/myImg.jpg">, and save bandwidth as well as zope processing. :) Bill