Up&Scrap Posted May 29, 2012 Share Posted May 29, 2012 Buenas tardes otra vez... Me gustaria saber como se activa la compresión Gzip en Prestashop? Link to comment Share on other sites More sharing options...
nadie Posted May 29, 2012 Share Posted May 29, 2012 Buenas tardes otra vez... Me gustaria saber como se activa la compresión Gzip en Prestashop? Sigue este manual: http://www.nethercottconstructions.com/content/8-installing-prestashop-on-local-computer Link to comment Share on other sites More sharing options...
Up&Scrap Posted May 29, 2012 Author Share Posted May 29, 2012 He copiado el texto que te dice, he regenerado el archivo y me sigue diciendo lo siguiente: Compressing http://www.upandscrap.com/js/jquery/jquery-1.4.4.min.js could save 50.3KiB (65% reduction). Compressing http://www.upandscrap.com/themes/prestashop_new/css/global.css could save 39.7KiB (81% reduction). Compressing http://www.upandscrap.com/themes/prestashop_new/js/modules/blockcart2/ajax-cart.js could save 17.8KiB (74% reduction). Compressing http://www.upandscrap.com/js/pluginDetect.js could save 14.9KiB (65% reduction). Compressing http://www.upandscrap.com/modules/slideric/js/jquery.nivo.slider.pack.js could save 4.1KiB (59% reduction). Compressing http://www.upandscrap.com/js/tools.js could save 4.1KiB (63% reduction). Compressing http://www.upandscrap.com/js/jquery/jquery.easing.1.3.js could save 3.7KiB (76% reduction). Compressing http://www.upandscrap.com/themes/prestashop_new/css/grid_prestashop.css could save 2.8KiB (75% reduction). Compressing http://www.upandscrap.com/modules/blocktopmenu/css/superfish-modified.css could save 2.5KiB (65% reduction). Compressing http://www.upandscrap.com/modules/blocktopmenu/js/superfish-modified.js could save 2.2KiB (59% reduction). Compressing http://www.upandscrap.com/modules/blocktopmenu/js/hoverIntent.js could save 1.9KiB (61% reduction). Compressing http://www.upandscrap.com/themes/prestashop_new/css/modules/blockcart2/blockcart.css could save 1.6KiB (66% reduction). Compressing http://www.upandscrap.com/modules/productstock//js/combinations_stock.js could save 1.5KiB (76% reduction). Compressing http://www.upandscrap.com/themes/prestashop_new/js/tools/treeManagement.js could save 1.3KiB (66% reduction). Compressing http://www.upandscrap.com/modules/categoriasenportada/css/categoriasenportada.css could save 1.2KiB (61% reduction). Compressing http://www.upandscrap.com/modules/productscategory/productscategory.js could save 1018B (52% reduction). Compressing http://www.upandscrap.com/modules/slideric/css/nivo-slider.css could save 1013B (56% reduction). Compressing http://www.upandscrap.com/js/jquery/jquery.serialScroll-1.2.2-min.js could save 968B (49% reduction). Compressing http://www.upandscrap.com/themes/prestashop_new/css/modules/blockuserinfo/blockuserinfo.css could save 820B (58% reduction). Compressing http://www.upandscrap.com/themes/prestashop_new/css/modules/blocknewsletter/blocknewsletter.css could save 771B (60% reduction). Compressing http://www.upandscrap.com/themes/prestashop_new/css/modules/blockcurrencies/blockcurrencies.css could save 765B (57% reduction). Compressing http://www.upandscrap.com/themes/prestashop_new/css/modules/blocklanguages/blocklanguages.css could save 721B (57% reduction). Compressing http://www.upandscrap.com/modules/blockcontact/blockcontact.css could save 499B (54% reduction). Compressing http://www.upandscrap.com/themes/prestashop_new/css/modules/blockcategories/blockcategories.css could save 497B (54% reduction). Compressing http://www.upandscrap.com/themes/prestashop_new/css/modules/blockmyaccountfooter/blockmyaccount.css could save 419B (57% reduction). Compressing http://www.upandscrap.com/modules/blockreinsurance/style.css could save 409B (58% reduction). Compressing http://www.upandscrap.com/modules/faq/lib/apple.css could save 401B (45% reduction). Compressing http://www.upandscrap.com/themes/prestashop_new/css/modules/blockviewed/blockviewed.css could save 344B (56% reduction). Compressing http://www.upandscrap.com/modules/blocksocial/social.css could save 291B (62% reduction). Compressing http://www.upandscrap.com/modules/productstock/productstock.css could save 287B (44% reduction). Compressing http://www.upandscrap.com/modules/ddlx_xtreme_footer/style.css could save 268B (44% reduction). Link to comment Share on other sites More sharing options...
nadie Posted May 29, 2012 Share Posted May 29, 2012 He copiado el texto que te dice, he regenerado el archivo y me sigue diciendo lo siguiente: Compressing http://www.upandscra...ry-1.4.4.min.js could save 50.3KiB (65% reduction). Compressing http://www.upandscra.../css/global.css could save 39.7KiB (81% reduction). Compressing http://www.upandscra...t2/ajax-cart.js could save 17.8KiB (74% reduction). Compressing http://www.upandscra...pluginDetect.js could save 14.9KiB (65% reduction). Compressing http://www.upandscra....slider.pack.js could save 4.1KiB (59% reduction). Compressing http://www.upandscrap.com/js/tools.js could save 4.1KiB (63% reduction). Compressing http://www.upandscra...y.easing.1.3.js could save 3.7KiB (76% reduction). Compressing http://www.upandscra..._prestashop.css could save 2.8KiB (75% reduction). Compressing http://www.upandscra...sh-modified.css could save 2.5KiB (65% reduction). Compressing http://www.upandscra...ish-modified.js could save 2.2KiB (59% reduction). Compressing http://www.upandscra.../hoverIntent.js could save 1.9KiB (61% reduction). Compressing http://www.upandscra...2/blockcart.css could save 1.6KiB (66% reduction). Compressing http://www.upandscra...ations_stock.js could save 1.5KiB (76% reduction). Compressing http://www.upandscra...eeManagement.js could save 1.3KiB (66% reduction). Compressing http://www.upandscra...asenportada.css could save 1.2KiB (61% reduction). Compressing http://www.upandscra...uctscategory.js could save 1018B (52% reduction). Compressing http://www.upandscra...nivo-slider.css could save 1013B (56% reduction). Compressing http://www.upandscra...ll-1.2.2-min.js could save 968B (49% reduction). Compressing http://www.upandscra...ockuserinfo.css could save 820B (58% reduction). Compressing http://www.upandscra...knewsletter.css could save 771B (60% reduction). Compressing http://www.upandscra...kcurrencies.css could save 765B (57% reduction). Compressing http://www.upandscra...cklanguages.css could save 721B (57% reduction). Compressing http://www.upandscra...lockcontact.css could save 499B (54% reduction). Compressing http://www.upandscra...kcategories.css could save 497B (54% reduction). Compressing http://www.upandscra...ckmyaccount.css could save 419B (57% reduction). Compressing http://www.upandscra...rance/style.css could save 409B (58% reduction). Compressing http://www.upandscra...q/lib/apple.css could save 401B (45% reduction). Compressing http://www.upandscra...blockviewed.css could save 344B (56% reduction). Compressing http://www.upandscra...cial/social.css could save 291B (62% reduction). Compressing http://www.upandscra...roductstock.css could save 287B (44% reduction). Compressing http://www.upandscra...ooter/style.css could save 268B (44% reduction). Instala esto: http://www.prestasho...e-presta-boost/ Link to comment Share on other sites More sharing options...
nadie Posted May 29, 2012 Share Posted May 29, 2012 Quizás te confunda el enlace, mejor descargalo de aquí: http://shop.endpulse.com/free/prestaboost_v_1_1.zip Link to comment Share on other sites More sharing options...
Up&Scrap Posted May 29, 2012 Author Share Posted May 29, 2012 Ya lo tenia instalado hace tiempo... Tenia la V1.0, he aprovechado y actualizado a la 1.1 pero aun asi el GZIP no esta activo... Link to comment Share on other sites More sharing options...
Up&Scrap Posted May 29, 2012 Author Share Posted May 29, 2012 El resultado esque me ha tirado abajo la web... No se si es casualidad pero al entrar que te deja pulsar un test al darle ya no me carga y la primera vez me ha causado un 503 y la segunda aun no se carga nada... Supongo que otro 503 Link to comment Share on other sites More sharing options...
nadie Posted May 29, 2012 Share Posted May 29, 2012 El resultado esque me ha tirado abajo la web... No se si es casualidad pero al entrar que te deja pulsar un test al darle ya no me carga y la primera vez me ha causado un 503 y la segunda aun no se carga nada... Supongo que otro 503 Yo ahora puedo entrar.. Link to comment Share on other sites More sharing options...
Up&Scrap Posted May 29, 2012 Author Share Posted May 29, 2012 Yo ahora puedo entrar.. Dura menos de 1 minuto el error... Link to comment Share on other sites More sharing options...
petete2008 Posted November 16, 2012 Share Posted November 16, 2012 Estoy tratando de mejorar la velocidad de la web, y dentro de las prácticas a seguir es disponer de Gzip. He agregado el código en .htaccess <IfModule mod_deflate.c> AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript </IfModule> Al testear algunas web de Gzip me da Ok sin más información (por ejemplo: www.woorank.com, http://www.gidnetwork.com/tools/gzip-test.php, etc..). En cambio al pasar el test de Google https://developers.google.com/speed/pagespeed e incluso instalando la extensión page speed para firefox me dice que no está activada la compresión. He comprobado que la cabecera HTTP tenga Content-Encoding: gzip y es correcto y mi servidor haciéndole un phpinfo() veo que tengo configurado el ZLib. El servidor está alojado en dinahosting. Alguien sabe que puede ser? Link to comment Share on other sites More sharing options...
GFornieles Posted November 16, 2012 Share Posted November 16, 2012 Estoy tratando de mejorar la velocidad de la web, y dentro de las prácticas a seguir es disponer de Gzip. He agregado el código en .htaccess <IfModule mod_deflate.c> AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript </IfModule> Al testear algunas web de Gzip me da Ok sin más información (por ejemplo: www.woorank.com, http://www.gidnetwor...s/gzip-test.php, etc..). En cambio al pasar el test de Google https://developers.g...speed/pagespeed e incluso instalando la extensión page speed para firefox me dice que no está activada la compresión. He comprobado que la cabecera HTTP tenga Content-Encoding: gzip y es correcto y mi servidor haciéndole un phpinfo() veo que tengo configurado el ZLib. El servidor está alojado en dinahosting. Alguien sabe que puede ser? Este codigo sirve para activar la compresion con gzip en tu caso tienes que buscar como activarla con zlib. Buscando en google he encontrado esto: php_flag zlib.output_compression on php_value zlib.output_compression_level 5 <FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$"> Header set Expires "Thu, 15 Apr 2010 20:00:00 GMT" Header unset Last-Modified Header unset ETag FileETag None </FilesMatch> Link to comment Share on other sites More sharing options...
petete2008 Posted November 16, 2012 Share Posted November 16, 2012 Pero tiene sentido que en unas paginas validadoras diga que si está activado y en otra como google speed diga que no? Yo creo que si lo tengo activado porque la cabecera http me devuelve Content-Encoding: gzip Igual es porque google speed almacena en cache valores incorrectos de antes de activar el gzip. Ni idea.... Link to comment Share on other sites More sharing options...
Recommended Posts