self-core
self-core copied to clipboard
CachedResource: Uniform URI keys.
Having two URI's
/foo/bar?a=100&b=true
and
/foo/bar?b=true&a=100
Eventhough these URIs have query parameters in different order, they are pointing to the same Resource
.
And this will lead to duplicate entries in JsonStorage
- will be treated as different primary key.
Proposal: order URI query parameters by 'name' in alphabetical oder before storing CachedResource
into JsonStorage
.
Ex: /foo/bar?b=true&a=100
will be /foo/bar?a=100&b=true
before storing.