Setting this per-request didn't fit our use case (enable for every page),  this approach enables the option of globally setting as well.