Do not add Content-Type or Last-Modified headers to 304 responses. #954

merged 1 commit into from Apr 6, 2013


None yet
2 participants

mrj10 commented Apr 3, 2013

The new behavior is compliant with RFC2616
( )

These extraneous headers don't cause a problem with most browsers, but I ran into a problem with Twilio's ( ) HTTP proxy that is likely to stem from this.

As a side-note, it would be nice to be able to make vserver rules that apply to certain response codes; that way, I could have made a 304 rule that deleted these two headers, and experimented with the fix without changing the source.

Since the only place modified_tm is now used here. You could move the memset and the declaration also within this scope. It probably doesn't save a huge bunch of time, but it is better readible.

@skinkie skinkie merged commit acaf26e into cherokee:master Apr 6, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment