What Horizon are you running? For optimization to work you have to run at least 7.13. Has the Windows Client been deployed with the setting enabled? Teams optimization GPO is set? Note that optimization for Linux is supported starting with Horizon 8 but you will have to check which release exactly though.