[Catalyst] Serving "static" content from DB

Ash Berlin ash_cpan at firemirror.com
Sat Jun 6 13:49:34 GMT 2009


On 6 Jun 2009, at 14:34, Octavian Râsnita wrote:

> From: "John Romkey" <romkey at apocalypse.org>
>> I agree whole-heartedly.
>>
>> There are very few drawbacks to serving directly from the  
>> filesystem (only one I can think of, which has to do with access  
>> control to the content),
>
> Sometimes the static content shouldn't be accessible at a permanent  
> URL for security reasons.

Agreed. Lighttpd has X-SendFile header that is good to use in cases  
like this. nginx has similar behaviour under a different header name,  
and there is an Apache module that gives X-SendFile to Apache users.


More information about the Catalyst mailing list