Closed davidw closed 11 years ago
This is definitely something that should be moved into an application env var. I agree.
Looking at things more, I see that, indeed, in build_response, if it's a file, the headers just get thrown out completely! Is there a reason not to share the header munging code between the two code paths, and use Headers2 in both of them?
You're definitely right. It's not done currently because the default behavior for Nitrogen is if it's a static file, it immediately passes the buck to simple_bridge to dole out to the webserver without doing anything. I can definitely see the value, however, in honoring any headers that are set prior to calling build_response.
This is merged. Thanks.
Hi,
I've been encountering some trouble with static content being cached in ChicagoBoss ( https://github.com/evanmiller/ChicagoBoss/issues/229 ) and part of my digging led me to this code, in which the Expires header is set, whether I like it or not:
Shouldn't this be set somewhere else, rather than in code that's supposed to just make two other systems talk to one another?
Thank you