This feature has been added to Tomcat 8 in 54095. When tomcat send .gz version of resouces, http header is missing vary: accept-encoding.
Fixed in 8.0.11 onwards