NOBUG fixed an error when PHP's internal gzip compression is on
MDL-29987 added option to disable embedding on mobile devices