Fix generate_etag call in postprocessing of response