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

--- Comment #11 from Antoine "hashar" Musso <[email protected]> ---
So finally here is the explanation:

In production the squids do not cache the redirects (we see MISS everywhere)
whereas Varnish text does cache them.  So in production the http:// URL is
always redirected to the https:// one and thus the cache is only hit with
http:// URL with X-Forwarded-Proto: https.

On labs, which uses varnish as a text cache, the redirect are cached.  The
cache is thus hit with http:// url with or without X-Forwarded-Proto: https set
and with or without Vary: X-Forwarded-Proto.

When the X-Forwarded-Proto: https is set, the query hit the MediaWiki backend
which properly set the Vary header.

When X-Forwarded-Proto is missing, the Apache does not set any Vary header.
That needs to be fixed.

-- 
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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to