This content has been marked as final. Show 2 replies
i am not quiet sure what your problem is...
CF does NOT serve your images - web server does. CF does not handle
those mime types, it's the web server's job. you can make cf handle and
serve them, but why?
since you are using cf's built-in web server in your development, that
web server (jrun) serves your images. once you switch to iis/apache -
they will serve your images instead.
you can configure your web server to cache your images, which will make
it serve them faster from its cache rather than requesting the image
every time. but a request for an image using <img> tag is always a
separate http request. and not just with <img> tag - images you use in
your styles/stylesheets are requested separately, too.
so, as i said, not sure what your issue is... can you please clarify?
k, I guess what I was asking is why store the images in C:\cf8\wwwroot as opposed to inside the web servers C:\Inetpub\wwwroot\images\ and I guess what you answered is that either way <img> images are served by the webserver and not the cfapplication server (unless <cfinclude> or the like is used).
Now, the <cfinclude> strategy has been proposed in a few blogs as a way to avoid image leeching by outside sites but I'm mainly interested in a 3 machine independent hosting setup (webserver, cfappserver, dbase) in which case I see advantages in speed/efficiency, security and portability by storing images on the webserver box (or even on a 4th box dedicated to images but then this adds another point of failure vis a vis using the webserver box).
Fwiw I realize this is overly complicating things before necessary but especially with the advent of virtual machines running on the same high performance box, why not?
Similarly with regard to the last point, rather than say 50 HTTP requests for 50 images, if there were an easy way to send one HTTP request asking for and then receiving in a single response all 50 images (which would then be parsed at the client level) and/or is this efficient/practical????