Only perform range requests for identity Content-Encoding

Fixes #3122.