Ver Mensaje Individual
  #4 (permalink)  
Antiguo 08/06/2015, 03:37
Avatar de lauser
lauser
Moderator Unix/Linux
 
Fecha de Ingreso: julio-2013
Ubicación: Odessa (Ukrania)
Mensajes: 3.278
Antigüedad: 11 años, 3 meses
Puntos: 401
Respuesta: Aumentar la velocidad cuando has reducido todo

Si tu server es decente te aconsejo activar el KeepAlive. Mira estas dos imágenes, las acabo de tomar..la primera con el KeepAlive desactivado, la segunda lo tiene activado.

Desactivado


Activado


Te pongo un ejemplo completo de htaccess:
Código Apache:
Ver original
  1. RewriteCond %{HTTP_USER_AGENT} libwww-perl.*
  2. RewriteRule .* – [F,L]
  3.  
  4. <IfModule mod_rewrite.c>
  5.     RewriteEngine on
  6.     RewriteBase /
  7.     RewriteCond %{REQUEST_FILENAME} !-f
  8.     RewriteCond %{REQUEST_FILENAME} !-d
  9.     RewriteRule ^(.*)$ index.php?$1
  10. </IfModule>
  11.  
  12. RewriteCond %{HTTP_HOST} ^(IPdelServer(.+)$)
  13. RewriteRule ^(.*)$ http://www.tuweb.es/$1 [R=301,L]
  14.  
  15. <ifModule mod_deflate.c>
  16.   AddOutputFilterByType DEFLATE text/html text/xml text/css text/plain
  17.   AddOutputFilterByType DEFLATE image/svg+xml application/xhtml+xml application/xml
  18.   AddOutputFilterByType DEFLATE application/rdf+xml application/rss+xml application/atom+xml
  19.   AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript application/json
  20.   AddOutputFilterByType DEFLATE application/x-font-ttf application/x-font-otf
  21.   AddOutputFilterByType DEFLATE font/truetype font/opentype
  22. </ifModule>
  23.  
  24. <ifModule mod_expires.c>
  25. ExpiresActive On
  26. ExpiresDefault "access plus 300 seconds"
  27. ExpiresByType text/html "access plus 600 seconds"
  28. ExpiresByType image/gif "access plus 604800 seconds"
  29. ExpiresByType image/ico "access plus 604800 seconds"
  30. ExpiresByType image/jpeg "access plus 604800 seconds"
  31. ExpiresByType image/jpg "access plus 604800 seconds"
  32. ExpiresByType image/png "access plus 604800 seconds"
  33. ExpiresByType text/css "access plus 604800 seconds"
  34. ExpiresByType text/javascript "access plus 604800 seconds"
  35. ExpiresByType application/x-javascript "access plus 604800 seconds"
  36. ExpiresByType application/javascript "access plus 604800 seconds"
  37. ExpiresByType application/xhtml+xml "access plus 600 seconds"
  38. </ifModule>
  39.  
  40. Header set Connection keep-alive
  41.  
  42. <ifModule mod_headers.c>
  43. <filesMatch "\\.(ico|pdf|flv|jpg|jpeg|png|gif|svg|swf)$">
  44. Header set Cache-Control "max-age=2592000, public"
  45. </filesMatch>
  46. <filesMatch "\\.(css)$">
  47. Header set Cache-Control "max-age=604800, public"
  48. </filesMatch>
  49. <filesMatch "\\.(js)$">
  50. Header set Cache-Control "max-age=604800, private"
  51. </filesMatch>
  52. <filesMatch "\\.(xml|txt)$">
  53. Header set Cache-Control "max-age=604800, public, must-revalidate"
  54. </filesMatch>
  55. <filesMatch "\\.(html|htm|php)$">
  56. Header set Cache-Control "max-age=1, private, must-revalidate"
  57. </filesMatch>
  58. </ifModule>
  59.  
  60. Header unset Pragma
  61. Header unset ETag
  62. FileETag None
  63.  
  64. php_flag apc.cache_by_default On
__________________
Los usuarios que te responden, lo hacen altruistamente y sin ánimo de lucro con el único fin de ayudarte. Se paciente y agradecido.
-SOLOLINUX-