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.
Consider headers in '$http' cache #5028
Open
Description
The current $http cache takes only the url as key. Consider the case where a call to the API uses the 'Range' header for pagination and cache is set to true. All requests to the same url with different pagination will return the first cached response to the inital page. IMHO headers are a defining part of the request, just like the url, and should therefore be included in the cache key.
Are there plans to include this? Would you accept a pull request?