Page MenuHomePhabricator

MediaWiki returns Cache-Control: private for all HTTPS requests
Closed, ResolvedPublic

Description

This code:

in_array( $request->getFullRequestURL(), $requestTitle->getSquidURLs() )

is used to determine whether the current URL is cacheable. But for HTTPS views, getFullRequestURL() returns an HTTPS URL while getSquidURLs() returns an array of HTTP URLs, so the in_array() call will never return true and the request will never be considered cacheable.

This means cache misses from HTTPS users are never used to populate the cache :(

Event Timeline

Catrope raised the priority of this task from to Needs Triage.
Catrope updated the task description. (Show Details)
Catrope subscribed.
gerritbot subscribed.

Change 190853 had a related patch set uploaded (by Catrope):
Fix URL comparison used for cacheability decision

https://gerrit.wikimedia.org/r/190853

Patch-For-Review

Change 190853 merged by jenkins-bot:
Fix URL comparison used for cacheability decision

https://gerrit.wikimedia.org/r/190853

Change 190937 had a related patch set uploaded (by Catrope):
Fix URL comparison used for cacheability decision

https://gerrit.wikimedia.org/r/190937

Patch-For-Review

Change 190937 merged by jenkins-bot:
Fix URL comparison used for cacheability decision

https://gerrit.wikimedia.org/r/190937

Change 190945 had a related patch set uploaded (by Catrope):
Fix URL comparison used for cacheability decision

https://gerrit.wikimedia.org/r/190945

Patch-For-Review

Change 190945 merged by jenkins-bot:
Fix URL comparison used for cacheability decision

https://gerrit.wikimedia.org/r/190945

Aklapper triaged this task as Medium priority.Feb 17 2015, 9:57 AM
Catrope claimed this task.