Introduce $wgVaryOnXFPToAPI which sends Vary: X-Forwarded-Proto (and the appropriate...
authorRoan Kattouw <catrope@users.mediawiki.org>
Wed, 3 Aug 2011 12:00:47 +0000 (12:00 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Wed, 3 Aug 2011 12:00:47 +0000 (12:00 +0000)
commitb5e0850f04d7ab4f47a1b33087a87698a117058d
tree8e123c16d0f025701c81fb7cd15c0d05321b21ec
parent4e133f4e2eb3f0ca70e3a6bcb4ae9b1f21b2ca6e
Introduce $wgVaryOnXFPToAPI which sends Vary: X-Forwarded-Proto (and the appropriate XVO, if needed) on cached API requests. This effectively splits the API cache between HTTP and HTTPS for people with an HTTPS termination setup in front of a caching proxy (like, say, WMF)
includes/DefaultSettings.php
includes/api/ApiMain.php