prevent deleting tempfile too early
nginx-compatible header