senchalabs/connect — pull request #582 by rolftimmermans (2012-06-05 11:42:03+00:00)
Title: Fix 304 response for clients that send If-Modified-Since headers.

Any client that sends an `If-Modified-Since` header to an app that uses the `staticCache` middleware will get 500 errors due to an error in `respondFromCache`.

This fixes the problem and includes a test case that checks for correct 304 responses when a static file is not modified.