3 ms·
There's no reason AJAX calls can't get cached the normal way. Just set appropriate headers on the response and the browser will cache it for as long as you want
by ef4 14y ago
There's no reason AJAX calls can't get cached the normal way. Just set appropriate headers on the response and the browser will cache it for as long as you want.
- twinturbo 14y agoAgree. Take advantage of HTTP caching.
- robinkomiwes 14y agoI'm completely aware that in most cases, the browser should do the job. Like I said before, we wanted to have a programmatic access to our cache. It let us read what is cached, update it or destroy it when some events occurs.