Ver Mensaje Individual
  #4 (permalink)  
Antiguo 01/01/2012, 08:40
Avatar de ryugen
ryugen
Colaborador
 
Fecha de Ingreso: agosto-2008
Ubicación: Rosario, Santa Fe
Mensajes: 350
Antigüedad: 15 años, 8 meses
Puntos: 187
Respuesta: Cómo cachear json? mejor método?

Con jQuery y el metodo $.getJSON() el cache es por defecto. Asì que si realizas peticiones de esta manera ya quedaran cacheadas.
Por otra parte si quieres evitar el cache de las peticiones HTTP GET, aca tienes una forma de desactivarla:
http://stackoverflow.com/questions/6...ed-incorrectly

Como te decia con jQuery y¨HTTP POST no se puede cachear, puedes leerlo aca en la documentacion:
http://api.jquery.com/jQuery.post/

Cita:
Pages fetched with POST are never cached, so the cache and ifModified options in jQuery.ajaxSetup() have no effect on these requests.