Fixed #22440 -- Updated ConditionalGetMiddleware to comply with RFC 2616.