[Catalyst] Serving static files without Sessions involved

Marcus Ramberg marcus.ramberg at gmail.com
Sun Mar 9 19:19:56 GMT 2008


On Sat, Mar 8, 2008 at 2:51 AM, Matt Knesi <knesi at hotmail.com> wrote:
> With my current configuration, when serving static files (like images
>  for my site layout etc.), every request will load session data.
>  (an older post at:
>  http://www.gossamer-threads.com/lists/catalyst/users/1437 also mentioned
>  this)
>
>  Is it possible to AVOID sessions for files from a specific directory?

Hi Matt

For production deployment, the best solution is to avoid catalyst
hitting your static files at all. For Apache for instance, you could
do this with something like the following:

<Location /static>
SetHandler default-handler
</Location>

-- 
With regards
Marcus Ramberg



More information about the Catalyst mailing list