godfat/jellyfish — pull request #1 by fumin (2012-11-29 11:19:40+00:00)
Title: redirect should be treated as a normal response

Hi Godfat

Under our usage of jellyfish

```
Api::Server = Rack::Builder.new do
use Api::MiddleError
use Rack::Cache
run Api::ServerCore.new
end
```

with the implementation of `Api::MiddleError` as
```
class Api::MiddleError
handle Jellyfish::Found do |e|
status e.status
headers e.headers
body e.body
end
end
```

redirects in `Api::ServerCore` don't get cached by `Rack::Cache`, although `Rack::Cache` itself stats that its capable of caching it in "lib/rack/cache/response.rb" line 59.

Is there a reason why redirects are treated as fly over exceptions instead of normal responses?