<br><br><div class="gmail_quote">On Wed, Jun 10, 2009 at 11:17 AM, Tomas Doran <span dir="ltr">&lt;<a href="mailto:bobtfish@bobtfish.net">bobtfish@bobtfish.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div class="im"><br>
On 10 Jun 2009, at 09:40, Francesc Romŕ i Frigolé wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
1) static performance: serving static files directly from apache is much faster than through catalyst. I find it specially noticeable with big files like large pictures and pdfs. Some of the files should not be public. If I do authentication in catalyst I can&#39;t serve them directly from apache.<br>


</blockquote>
<br></div>
Nod so.<br>
<br>
Look at mod_sendfile, which implements lighty&#39;s X-SendFile<br>
</blockquote><div class="im"><br>Google thinks you meant mod_xsendfile: <a href="http://tn123.ath.cx/mod_xsendfile/">http://tn123.ath.cx/mod_xsendfile/</a><br><br>It looks very interesting but I wonder if my shared host provider (asmallorange) would agree to install it.<br>

<br><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2) dynamic/AJAX laziness: pages that use XMLHttpRequest stop working when authentication expires. Unless I manually detect the condition and allow the user to re-authenticate. Using HTTP auth should let the browser take care of this.<br>


</blockquote>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Erm, the reason that this will never fail with HTTP auth is that http auth never expires (well, it always lasts one browser session), and the browser sends the auth credentials with each request.<br>
</blockquote><div><br>Good point !!!!<br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
You can get the same effect by setting the correct options on your session cookie.<div><div></div><div class="h5"></div></div></blockquote><div><br><br>I&#39;ll look into that then. Thanks<br><br><br></div></div><br>