21. Caching and AJAX
• Caching is always good
• Same as HTTP Caching
• Static Content
• Lookup Data
• Images
• Not good for AJAX
• Mostly used with Dynamic Content
44. AJAX - JSON Request
”company=yahoo&loc=india”
Syntax:
GET
$.getJSON( { company: ‘yahoo’, loc: ‘india’ }
URL, No Post & GET only
[data],
[success callback]
);