henrycr Posted September 16, 2011 Share Posted September 16, 2011 My hosting tells me to improve web speed I have to insert this code in page, but not where I have to put it, I have an old version of PrestaShop Someone can tell me please Add the following code to the very top of your Web pages above the DOCTYPE: <?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); ?> Rename the file you want to compress with a .php extension instead of .html or .htm and upload the file to your site. The file will be compressed upon request and delivered to the visitors' browser. helpme please henry Link to comment Share on other sites More sharing options...
rocky Posted September 25, 2011 Share Posted September 25, 2011 Just edit themes/<your_theme>/header.tpl and add that code to the top of the file. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now