# curl requests WITHOUT Accept-Encoding header in request # The cached version: $ curl -I http://deployment.wikimedia.beta.wmflabs.org/wiki/Main_Page HTTP/1.0 200 OK Date: Mon, 01 Jul 2013 07:40:54 GMT Server: Apache X-Powered-By: PHP/5.3.10-1ubuntu3.6+wmf1 X-Content-Type-Options: nosniff Cache-Control: private, s-maxage=0, max-age=0, must-revalidate Content-Language: labs Vary: Accept-Encoding,Cookie X-Vary-Options: Accept-Encoding;list-contains=gzip,Cookie;string-contains=labswikiToken;string-contains=labswikiLoggedOut;string-contains=labswiki_session;string-contains=centralauth_Token;string-contains=centralauth_Session;string-contains=centralauth_LoggedOut;string-contains=mf_useformat Last-Modified: Mon, 01 Jul 2013 07:40:44 GMT Content-Length: 22747 Content-Type: text/html; charset=UTF-8 X-Cache: MISS from squid001.beta.wmflabs.org X-Cache-Lookup: MISS from squid001.beta.wmflabs.org:80 Via: 1.1 squid001.beta.wmflabs.org:80 (squid/2.7.STABLE9) Connection: close # Did an edit on the main page and tried again: $ curl -I http://deployment.wikimedia.beta.wmflabs.org/wiki/Main_Page HTTP/1.0 200 OK Date: Mon, 01 Jul 2013 07:42:32 GMT Server: Apache X-Powered-By: PHP/5.3.10-1ubuntu3.6+wmf1 X-Content-Type-Options: nosniff Cache-Control: private, s-maxage=0, max-age=0, must-revalidate Content-Language: labs Vary: Accept-Encoding,Cookie X-Vary-Options: Accept-Encoding;list-contains=gzip,Cookie;string-contains=labswikiToken;string-contains=labswikiLoggedOut;string-contains=labswiki_session;string-contains=centralauth_Token;string-contains=centralauth_Session;string-contains=centralauth_LoggedOut;string-contains=mf_useformat Last-Modified: Mon, 01 Jul 2013 07:42:26 GMT Content-Length: 22748 Content-Type: text/html; charset=UTF-8 Age: 14 X-Cache: HIT from squid001.beta.wmflabs.org X-Cache-Lookup: HIT from squid001.beta.wmflabs.org:80 Via: 1.1 squid001.beta.wmflabs.org:80 (squid/2.7.STABLE9) Connection: close # That page did contain the edit, notice the Age: 14 which confirms the page got properly purged. ---------------------------- Curl requests with 'Accept-Encoding:gzip,deflate' header: $ curl -I -H 'Accept-Encoding:gzip,deflate' http://deployment.wikimedia.beta.wmflabs.org/wiki/Main_Page HTTP/1.0 200 OK Date: Sun, 30 Jun 2013 19:38:47 GMT Server: Apache X-Powered-By: PHP/5.3.10-1ubuntu3.6+wmf1 X-Content-Type-Options: nosniff Cache-Control: private, s-maxage=0, max-age=0, must-revalidate Content-Language: labs Vary: Accept-Encoding,Cookie X-Vary-Options: Accept-Encoding;list-contains=gzip,Cookie;string-contains=labswikiToken;string-contains=labswikiLoggedOut;string-contains=labswiki_session;string-contains=centralauth_Token;string-contains=centralauth_Session;string-contains=centralauth_LoggedOut;string-contains=mf_useformat Last-Modified: Fri, 28 Jun 2013 21:48:38 GMT Content-Encoding: gzip Content-Length: 7040 Content-Type: text/html; charset=UTF-8 Age: 43243 X-Cache: HIT from squid001.beta.wmflabs.org X-Cache-Lookup: HIT from squid001.beta.wmflabs.org:80 Via: 1.1 squid001.beta.wmflabs.org:80 (squid/2.7.STABLE9) Connection: close $ # Did an edit on the main page and tried again: $ curl -I -H 'Accept-Encoding:gzip,deflate' http://deployment.wikimedia.beta.wmflabs.org/wiki/Main_Page HTTP/1.0 200 OK Date: Sun, 30 Jun 2013 19:38:47 GMT Server: Apache X-Powered-By: PHP/5.3.10-1ubuntu3.6+wmf1 X-Content-Type-Options: nosniff Cache-Control: private, s-maxage=0, max-age=0, must-revalidate Content-Language: labs Vary: Accept-Encoding,Cookie X-Vary-Options: Accept-Encoding;list-contains=gzip,Cookie;string-contains=labswikiToken;string-contains=labswikiLoggedOut;string-contains=labswiki_session;string-contains=centralauth_Token;string-contains=centralauth_Session;string-contains=centralauth_LoggedOut;string-contains=mf_useformat Last-Modified: Fri, 28 Jun 2013 21:48:38 GMT Content-Encoding: gzip Content-Length: 7040 Content-Type: text/html; charset=UTF-8 Age: 43337 X-Cache: HIT from squid001.beta.wmflabs.org X-Cache-Lookup: HIT from squid001.beta.wmflabs.org:80 Via: 1.1 squid001.beta.wmflabs.org:80 (squid/2.7.STABLE9) Connection: close $ Age raised, content-lenght is thesame. Aka the page did not get purged :(