What if the origin server returns:

   Content-Encoding: gzip
   Content-Encoding: foo

Does that happen?