jesusabdullah/node-ecstatic — Issue #25: Status code not set to 304
Author: colinf
Created: 2012-01-27 14:00:17+00:00
State: open

I have been having a problem in that the http response status code is 200 rather than 304 for files which have not changed. It works for me if I make the following change in status-handler.js

exports['304'] = function (res, next) {
res.writeHead(304, res.headers);
res.end();
};
I don't really understand why and it could potentially need to be similarly changed in several other places in that file, so would rather see if anyone understands it before I submit a pull request.

Cheers,
Colin