Skip to content
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
@filiptc

Description

@filiptc

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions