senchalabs/connect — Issue #402: staticCache doesn't set max-age
Author: RobeeeJay
Created: 2011-11-03 18:29:54+00:00
State: open

I'll probably fix this myself at some point and submit the changes, but in case I don't...

connect.static() lets you specify maxAge as a parameter, for cache control. This is great for the client. :)

However the moment you use connect.staticCache() maxAge doesn't get set at all, and images are no longer cached by the client. So what you gain in speed on the server, the client takes away by generating more requests. :/