wikimedia.vcl: set CP ('Connection Properties') cookie in vcl_deliver

Authored by ori.

Description

wikimedia.vcl: set CP ('Connection Properties') cookie in vcl_deliver

Batching ResourceLoader module requests (that is, loading as many modules as
possible in a single request) is essential for site performance for HTTP 1.x
clients. For SPDY clients, it leads to needless cache invalidation, because
whenever a module is updated, we retrieve a whole bunch of other modules with
it. So, set a CP ('Connection Properties') cookie in vcl_deliver with a value
of 'H2' for SPDY clients (I am looking ahead to HTTP 2.0 replacing SPDY).
The format of the cookie will be !-separated fields, like the current CN
(CentralNotice) cookie.

Needs bblack's review, since I think I may have promised him at one point or
another not to do this.

Untested.

Change-Id: I669cf5fb5116158c5c05cf029934bddab5e2847a

Details

Committed
BBlackNov 18 2015, 11:27 PM
Parents
rOPUP1d6a0d97f5d9: racktables: puppetize /srv/org/.. directory tree
Branches
Unknown
Tags
Unknown
References
refs/changes/45/253645/5
ChangeId
I669cf5fb5116158c5c05cf029934bddab5e2847a