Index: trunk/phase3/includes/Article.php |
— | — | @@ -5,6 +5,8 @@ |
6 | 6 | # Note: edit user interface and cache support functions have been |
7 | 7 | # moved to separate EditPage and CacheManager classes. |
8 | 8 | |
| 9 | +include_once( "CacheManager.php" ); |
| 10 | + |
9 | 11 | class Article { |
10 | 12 | /* private */ var $mContent, $mContentLoaded; |
11 | 13 | /* private */ var $mUser, $mTimestamp, $mUserText; |
— | — | @@ -1314,7 +1316,7 @@ |
1315 | 1317 | exit; |
1316 | 1318 | } else { |
1317 | 1319 | wfDebug( " tryFileCache() - starting buffer\n" ); |
1318 | | - if($cache->useGzip()) { |
| 1320 | + if($cache->useGzip() && wfClientAcceptsGzip()) { |
1319 | 1321 | /* For some reason, adding this header line over in |
1320 | 1322 | CacheManager::saveToFileCache() fails on my test |
1321 | 1323 | setup at home, though it works on the live install. |