https://bugzilla.wikimedia.org/show_bug.cgi?id=19849

           Summary: X-Vary-Options header should be configurable, not sent
                    to users
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: Normal
         Component: Page rendering
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: greenrea...@hotmail.com


MediaWiki sends a custom X-Vary-Options header on responses. The reason for
doing so is described here:
http://www.mail-archive.com/squid-...@squid-cache.org/msg07066.html

An example:
X-Vary-Options:
Accept-Encoding;list-contains=gzip,Cookie;string-contains=ruToken;string-contains=ruLoggedOut;string-contains=ru_session\r\n

This header helps patched caches. However for those sites which don't have that
patch applied, or who don't use Squid at all - i.e. pretty much everyone
outside Wikimedia - this feature just adds around 137 uncompressed bytes of
useless padding per request.

This header should be optional, and off by default, unless/until this patch is
accepted upstream in Squid.

FWIW, I also feel this header should also be stripped out from Wikimedia
responses going to end-users (==if there is no Via: header in the request),
otherwise you're needlessly sending them ~260 uncompressed bytes per request:
X-Vary-Options:
Accept-Encoding;list-contains=gzip,Cookie;string-contains=enwikiToken;string-contains=enwikiLoggedOut;string-contains=enwiki_session;string-contains=centralauth_Token;string-contains=centralauth_Session;string-contains=centralauth_LoggedOut

This would presumably involve changing the Squid patch itself.


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to