The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

caching with $http

caching with $http

2:17
By default your HTTP requests with the $https service in Angular are **not** cached. By setting some options, you can turn caching on.
Watch this lesson now
Avatar
egghead.io

By default your HTTP requests with the $https service in Angular are not cached. By setting some options, you can turn caching on.

Avatar
alex

Is there a way to access the $http.post data in the custom cache?
All our Ajax requests are on the same endpoint, and I want to be able to cache and clear cache based on the "action" param of the post data and not by the URL.

In reply to egghead.io
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?