Index: trunk/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -229,9 +229,10 @@ |
230 | 230 | |
231 | 231 | private function disableCaching() { |
232 | 232 | if ( isset( $_SERVER['HTTP_VIA'] ) && |
233 | | - stripos( $_SERVER['HTTP_VIA'], '.wikimedia.org:' ) !== false ) { |
234 | | - header( "Cache-Control: no-cache, must-revalidate" ); // HTTP/1.1 |
235 | | - header( "Expires: Sat, 26 Jul 1997 05:00:00 GMT" ); // Date in the past |
| 233 | + stripos( $_SERVER['HTTP_VIA'], '.wikimedia.org:3128' ) !== false ) { |
| 234 | + header( 'Cache-Control: no-cache, must-revalidate' ); |
| 235 | + header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' ); |
| 236 | + header( 'Pragma: no-cache' ); |
236 | 237 | } |
237 | 238 | } |
238 | 239 | |