Middleware for responding to Last-Modified and ETag requests.