we do a similar thing for auto-generated images, except we use a custom PerlHandler to generate the images instead of mason.

<Location /img>
  SetHandler perl-script
  PerlHandler AA::ImageHandler
  PerlSendHeader On
</Location>

another option is to use mason the way you currently do, but name the files appropriately (.jpg|.jpeg) and simply tell mason to handle these as well

<LocationMatch "^/thumbnails/.+\.jpe?g$">


hope this helps


Mark Copper wrote:
I'm a little embarrassed to reveal this, master of no trade that I am...

My Mason lab is a small ecommerce site where <LocationMatch "\.html$">
hands the file to Mason.  Pages contain thumbnails of pictures generated
by ImageMagick through Mason.  I'm sure this is inefficient, but having
only one size of the photo on the server and using Mason's cacheing
seems to work pretty well and is easy to maintain. These thumbnails are included into html source by <img src="/thumbnail/pic_file_name.jpeg/scale_factor.html">
where the dhandler strips the html extension and reads the scale factor.

Knock-on effect (I *think*):  For some reason Yahoo Slurp has been
indexing these URI's as if they really were html pages, and apparently
penalizing the site for trying to game the search engine with an excess
of pages with little or no content.

I'm testing this theory by putting an appropriate disallow statement in
robots.txt.  I'm posting to mason users to ask if any one might have
knowledge related to this they would be willing to share.

Thanks.

Mark


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to