Donncha,
Bonus points to you, as this fix appears to resolve the other issue I experienced with 1.1, where requests not desiring compression would nevertheless get gzipped responses (request headers lacking an accept-encoding:gzip header would still get gzipped output–see href=”https://www.ads-software.com/support/topic/plugin-wp-super-cache-gzip-bug).
Now compressed content is returned only if a client says it’s OK to:
$ wget --header="accept-encoding: gzip" -S -O wpsc11.html https://####/crain/wpsc11/feed/
--2012-06-21 15:03:03-- https://####/crain/wpsc11/feed/
Resolving #### (####)... ####
Connecting to #### (####)|####|:80... connected.
HTTP request sent, awaiting response...
HTTP/1.1 200 OK
Date: Thu, 21 Jun 2012 19:03:04 GMT
Server: Apache
X-Powered-By: PHP/5.3.3
Content-Encoding: gzip
Vary: Accept-Encoding,Cookie
X-Pingback: https://####/crain/wpsc11/xmlrpc.php
ETag: "1d7e411dd3ae8bf6be9d96dd8d6b17a0"
WP-Super-Cache: Served legacy cache file
Wx: 3
Content-Length: 1166
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/xml; charset=UTF-8
Length: 1166 (1.1K) [text/xml]
Saving to: 'wpsc11.html'
100%[=======================================================================================>] 1,166 --.-K/s in 0s
2012-06-21 15:03:03 (11.1 MB/s) - 'wpsc11.html' saved [1166/1166]
$ file wpsc11.html
wpsc11.html: gzip compressed data, from Unix
$ wget -S -O wpsc11.html https://####/crain/wpsc11/feed/
--2012-06-21 15:03:21-- https://####/crain/wpsc11/feed/
Resolving #### (####)... ####
Connecting to #### (####)|####|:80... connected.
HTTP request sent, awaiting response...
HTTP/1.1 200 OK
Date: Thu, 21 Jun 2012 19:03:22 GMT
Server: Apache
X-Powered-By: PHP/5.3.3
Vary: Cookie
X-Pingback: https://####/crain/wpsc11/xmlrpc.php
ETag: "1d7e411dd3ae8bf6be9d96dd8d6b17a0"
WP-Super-Cache: Served legacy cache file
Wx: 8
Content-Length: 6540
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/xml; charset=UTF-8
Length: 6540 (6.4K) [text/xml]
Saving to: 'wpsc11.html'
100%[=======================================================================================>] 6,540 --.-K/s in 0s
2012-06-21 15:03:21 (82.2 MB/s) - 'wpsc11.html' saved [6540/6540]
$ file wpsc11.html
wpsc11.html: XML document text
Very happy about this! Thanks!