-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Apr 21, 2010, at 05:22 , Matthew M. Boedicker wrote:
> When Rack::Static is used under Passenger it seems like the request is served by Apache and none of the other middlewares in the chain are run. Is this correct?
Usually you want that behavior, as Apache is much better at throwing static files at the browser. Handing the data through your application is a rather large overhead.
> Is there any way to serve static files but also run them through other middlewares such as deflater and cache? When running under rackup it uses all the middleware and I would like the application to always behave the same.
>
Use File.read or something instead of Rack::Static. If it's only about deflation/cashing, then you might want to consider setting that up on apache or even load balancer level.
Konstantin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
iQEcBAEBAgAGBQJLzpLqAAoJEM+qkfuqK1IXJuQIALUP92l8SimI94g3bkWfcDLM
y7EwHYiOWpPln83qZl/7ug931yxC3Q0MI7reRiJnqj6F96QDvMWS2/9kDb+BF/op
Rlvl1imEF3OW5ug+ZZHJduqm2QXldPZBNd/SJHMmUMXZth3xakl1mNbxL/gkm0Ou
lyYBxJBl/VhXcImpju997//5jfPcqeXukyi0Ea3RE3q1iQepkM9lXqBKvJ3gdI4B
o8Xn2+A4Sbus0TzI0LB19r0Vz+tvdtl9I3wbEvpq310ghcUEDsx59a5wvjfBKWOc
eEq9ABQNjK2Is/ekTsTrBwnHiCVGzEj2Yrmv+Zsq5yZDykrRg3DHk4kGEXKI8xM=
=j9Lj
-----END PGP SIGNATURE-----
--
Subscription settings:
http://groups.google.com/group/rack-devel/subscribe?hl=en