Saturday, September 13, 2014

Vodafone & Etisalat Egypt internet proxy alters and optimizes your code


Do you know that web pages opened using Vodafone & Etisalat internet goes through a proxy which alter and optimize the code to save bandwidth ?
This sometimes breaks pages (ex: linkedin) you will then need to "hard-refresh" the page to load correctly

If you have a website and you do not want such proxy to alter your code, you can add the following header only in your .htaccess and enable header mod in apache

Header set Cache-Control "no-transform"

Now the proxy will not alter the code anymore

Reference: 
http://stackoverflow.com/questions/2139699/set-http-header-for-all-php-scripts-via-htaccess-file