This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
$http cache doesn't work for JSONP requests #1947
Closed
Description
Using the $http with cache doesn't work for JSONP methods. At the moment the cache only works for GET methods, while I think it could be useful to cache JSONP too if the the cache-control headers allow it.
Are there reasons JSONP can't be cached? I think the callback could be a small issue?
- example of the problem: http://plnkr.co/edit/EG7yiZo3poTzxeMOfcUp
- Link to the discussion on G+: https://plus.google.com/u/0/109624499308077610663/posts/H2N7YsRi9CU
After some more research I've found this discussion on the mailinglist and merge request that is looks like it could solve this issue. At the moment the merge request is closed though.