On Mon, 6 May 2002, Perrin Harkins wrote: > Ken Williams wrote: > > The idea is that I'd put a bunch of JPEGs on the > > server at locations like foo/123.jpg , and then if a request came for > > foo/123-medium.jpg , I'd catch that with a 404 ErrorDocument and > > generate the resized image using Imager. If I wanted to, I could also > > create the resized image on disk, so it wouldn't need to be generated > > next time. > > Incidentally, that's how Vignette StoryServer works. You could also do > this kind of thing with a transhandler (or mod_rewrite) that checks for > the existence of a static file and rewrites the URL if it can't find > one. That might be more "correct", but trapping 404 is the best > possible performance, since there is no additional code in the response > chain if the static file is there. >
fyi, i believe that Vignette is attempting to patent that. > - Perrin > m@ =) matthew d. p. k. strelchun-lanier [EMAIL PROTECTED] 415-515-5421 http://www.lanier.org http://sf.pm.org