Reputation: 6070
say i have page A, that uses ajax to call students names list
can i cache it in a way that say tomorrow the user opens page B that also using the same ajax to the same list? like the way the browser uses cache for files (JS CSS)?
Upvotes: 0
Views: 36
Reputation: 5923
If the resource you call with Ajax set the relevant caching headers. The browser will automatically cache them like it does with images.
http://www.mobify.com/blog/beginners-guide-to-http-cache-headers/
Upvotes: 1