Ver Mensaje Individual
  #2 (permalink)  
Antiguo 21/01/2014, 07:33
manzarinaa
 
Fecha de Ingreso: noviembre-2007
Mensajes: 382
Antigüedad: 16 años, 5 meses
Puntos: 16
Respuesta: Expiracion de cache con .htaccess

Estuve cacharreando hace tiempo con esto.

No es que no funcione. Es que estos validadores dan por bueno todo lo que sea de una semana o dos(no recuerdo bien), en adelante.

Cambia estos por un mes para estar seguro y prueba.
Código PHP:
Ver original
  1. # Perhaps better to whitelist expires rules? Perhaps.
  2.  ExpiresDefault                          "access plus 1 hour"
  3.  
  4. # cache.appcache needs re-requests in FF 3.6 (thanks Remy ~Introducing HTML5)
  5.  ExpiresByType text/cache-manifest       "access plus 0 seconds"
  6.  
  7. # Your document html
  8.  ExpiresByType text/html                 "access plus 0 seconds"
  9.  
  10. # Data
  11.  ExpiresByType application/json          "access plus 0 seconds"
  12.   ExpiresByType application/xml           "access plus 0 seconds"
  13.   ExpiresByType text/xml                  "access plus 0 seconds"
  14.  
  15. # Feed
  16.  ExpiresByType application/atom+xml      "access plus 1 hour"
  17.   ExpiresByType application/rss+xml       "access plus 1 hour"
  18.  
  19. # Favicon (cannot be renamed)
  20.  ExpiresByType image/x-icon              "access plus 1 week"