Make the ratio of requests getting Priority Hints configurable
authorGilles Dubuc <gilles@wikimedia.org>
Wed, 3 Apr 2019 07:06:38 +0000 (09:06 +0200)
committerGilles Dubuc <gilles@wikimedia.org>
Mon, 22 Apr 2019 19:00:19 +0000 (22:00 +0300)
commit7433fa97f6ef1aa19114e111f3568c60080c262b
tree7577f4a423e0fcf11404abc87195007183ac92db
parentb76886d4f895d8f57b3814714f62f52cb5648cc1
Make the ratio of requests getting Priority Hints configurable

This will allow to create 2 separate populations in
order to verify the effect of the hint.

It's fine if it's not exactly balanced in practice,
what matters is getting a significant amount of
traffic for both scenarios (origin trial is enabled +
an image is given high prio/origin trial is enabled +
no image is given special treatment).

Bug: T216499
Change-Id: I373960b2bed8437c2e97e6d729d43aff6901046c
includes/DefaultSettings.php
includes/media/ThumbnailImage.php