goiko111 Posted January 5, 2015 Share Posted January 5, 2015 Hola a todos En pagespeed me da muy bajo y a corregir como urgente el tema de especificar la cache del navegador. He leido algo por el foro y he añadido lo siguiente (pero me sigue dando el mismo error) en el htaccess del httpdocs he añadido esto <ifmodule mod_expires.c> <filesmatch "\.(jpg|JPG|gif|GIF|png|css|ico)$"> ExpiresActive on ExpiresDefault "access plus 7 day" </filesmatch> </ifmodule> mi web es la siguiente: http://www.babyinfantile.com Gracias por cualquier tipo de ayuda. Link to comment Share on other sites More sharing options...
galindogadea Posted January 5, 2015 Share Posted January 5, 2015 En parámetros avanzados - rendimiento has señalado optimización apache? Link to comment Share on other sites More sharing options...
galindogadea Posted January 5, 2015 Share Posted January 5, 2015 Mira ver este link tambien http://www.prestashop.com/forums/topic/388787-gzip-en-prestashop-1609-solucionado/ Link to comment Share on other sites More sharing options...
goiko111 Posted January 5, 2015 Author Share Posted January 5, 2015 Si, tengo seleccionado optimización apache Link to comment Share on other sites More sharing options...
goiko111 Posted January 5, 2015 Author Share Posted January 5, 2015 se supone que tengo que poner esto en el htaccess? <IfModule mod_deflate.c> *<IfModule mod_filter.c> AddOutputFilterByType DEFLATE text/html text/css text/javascript application/javascript application/x-javascript *</IfModule></IfModule> Gracias Link to comment Share on other sites More sharing options...
galindogadea Posted January 5, 2015 Share Posted January 5, 2015 Si, tengo seleccionado optimización apache ¿Has revisado tambien lo del link que te pase? <IfModule mod_deflate.c> *<IfModule mod_filter.c> AddOutputFilterByType DEFLATE text/html text/css text/javascript application/javascript application/x-javascript *</IfModule> </IfModule> se supone que tengo que poner esto en el htaccess? <IfModule mod_deflate.c> *<IfModule mod_filter.c> AddOutputFilterByType DEFLATE text/html text/css text/javascript application/javascript application/x-javascript *</IfModule> </IfModule> Gracias jojo hemos escrito en el mismo mensaje... eso es lo que dicen en el otro enlace... (pruebalo)... No creo que pierdas nada por hacerlo, solo 10 segundos... de tiempo... Link to comment Share on other sites More sharing options...
goiko111 Posted January 5, 2015 Author Share Posted January 5, 2015 mi htaccess ya tiene esto FileETag INode MTime Size<IfModule mod_deflate.c> <IfModule mod_filter.c> AddOutputFilterByType DEFLATE text/html text/css text/javascript application/javascript application/x-javascript </IfModule></IfModule> Tengo que añadir algo? porque eso ya lo tenía Link to comment Share on other sites More sharing options...
goiko111 Posted January 5, 2015 Author Share Posted January 5, 2015 Si lo copio y pego tal cual con asteriscos me da error la página y no se me ve Link to comment Share on other sites More sharing options...
goiko111 Posted January 8, 2015 Author Share Posted January 8, 2015 Alguien me puede ayudar? Gracias de antemano Link to comment Share on other sites More sharing options...
guelu Posted January 8, 2015 Share Posted January 8, 2015 Hola yo os puedo decir como lo tengo yo: <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/gif "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType text/css "access plus 1 week" ExpiresByType text/javascript "access plus 1 week" ExpiresByType application/javascript "access plus 1 week" ExpiresByType application/x-javascript "access plus 1 week" ExpiresByType image/x-icon "access plus 1 year" ExpiresByType image/svg+xml "access plus 1 year" ExpiresByType image/vnd.microsoft.icon "access plus 1 year" ExpiresByType application/font-woff "access plus 1 year" ExpiresByType application/x-font-woff "access plus 1 year" ExpiresByType application/vnd.ms-fontobject "access plus 1 year" ExpiresByType font/opentype "access plus 1 year" ExpiresByType font/ttf "access plus 1 year" ExpiresByType font/otf "access plus 1 year" ExpiresByType application/x-font-ttf "access plus 1 year" ExpiresByType application/x-font-otf "access plus 1 year" </IfModule> a ver si ayuda!! Link to comment Share on other sites More sharing options...
goiko111 Posted January 10, 2015 Author Share Posted January 10, 2015 Este es mi htacces, alguien que me ayude? # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution# http://www.prestashop.com - http://www.prestashop.com/forums<IfModule mod_security.c>SecFilterEngine OffSecFilterScanPOST Off</IfModule><IfModule mod_rewrite.c><IfModule mod_env.c>SetEnv HTTP_MOD_REWRITE On</IfModule>RewriteEngine onRewriteRule . - [E=REWRITEBASE:/]RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]# ImagesRewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L]RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L]RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L]RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L]RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L]RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L]RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L]RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L]RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L]RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L]# AlphaImageLoader for IE and fancyboxRewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]# DispatcherRewriteCond %{REQUEST_FILENAME} -s [OR]RewriteCond %{REQUEST_FILENAME} -l [OR]RewriteCond %{REQUEST_FILENAME} -dRewriteRule ^.*$ - [NC,L]RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L]</IfModule>AddType application/vnd.ms-fontobject .eotAddType font/ttf .ttfAddType font/otf .otfAddType application/x-font-woff .woff<IfModule mod_expires.c> ExpiresActive On ExpiresByType image/gif "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType text/css "access plus 1 week" ExpiresByType text/javascript "access plus 1 week" ExpiresByType application/javascript "access plus 1 week" ExpiresByType application/x-javascript "access plus 1 week" ExpiresByType image/x-icon "access plus 1 year" ExpiresByType image/svg+xml "access plus 1 year" ExpiresByType image/vnd.microsoft.icon "access plus 1 year" ExpiresByType application/font-woff "access plus 1 year" ExpiresByType application/x-font-woff "access plus 1 year" ExpiresByType application/vnd.ms-fontobject "access plus 1 year" ExpiresByType font/opentype "access plus 1 year" ExpiresByType font/ttf "access plus 1 year" ExpiresByType font/otf "access plus 1 year" ExpiresByType application/x-font-ttf "access plus 1 year" ExpiresByType application/x-font-otf "access plus 1 year"</IfModule>FileETag INode MTime Size<IfModule mod_deflate.c> <IfModule mod_filter.c> AddOutputFilterByType DEFLATE text/html text/css text/javascript application/javascript application/x-javascript </IfModule></IfModule>#If rewrite mod isn't enabledErrorDocument 404 /index.php?controller=404# ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again<ifmodule mod_expires.c> <filesmatch "\.(jpg|JPG|gif|GIF|png|css|ico)$"> ExpiresActive on ExpiresDefault "access plus 7 day" </filesmatch> </ifmodule> Link to comment Share on other sites More sharing options...
Trade1 Posted March 7, 2015 Share Posted March 7, 2015 Hola goiko111, has podido solucionar este tema? tengo el mismo problema. Gracias. Link to comment Share on other sites More sharing options...
goiko111 Posted March 15, 2015 Author Share Posted March 15, 2015 no, me sigue pasando lo mismo Link to comment Share on other sites More sharing options...
Trade1 Posted March 16, 2015 Share Posted March 16, 2015 Entonces, seguimos rasgueando .... Link to comment Share on other sites More sharing options...
noesm1975 Posted March 18, 2016 Share Posted March 18, 2016 Hola! A mi me ha funcionado el código del enlace que ha puesto Prestashop Fanatic. El problema que me aparece al subir ese código al htc.Access es que me da error en la versión móvil de mi web. A alguien más le ha pasado? 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