A middleware for adding ETag headers based on response content