add 304 support in sendfile function