[Catalyst] serving static files

Perrin Harkins perrin at elem.com
Wed Jan 10 20:33:50 GMT 2007


On Wed, 2007-01-10 at 22:20 +0200, Octavian Rasnita wrote:
> I guess that authorizing the users, then read() -ing the selected file and 
> serving to the browser is not very efficient, especially under mod_perl.
> Is there a better way?

Yes.  Writing an auth handler and then letting the normal handler deal
with serving the file is more efficient than that.  The most efficient
is using mod_auth_tkt on your proxy server and setting the ticket cookie
from your perl code when people log in.  Then the static files don't
need to touch mod_perl at all.

http://www.openfusion.com.au/labs/mod_auth_tkt/

- Perrin




More information about the Catalyst mailing list