self-core icon indicating copy to clipboard operation
self-core copied to clipboard

CachedResource: Uniform URI keys.

Open criske opened this issue 3 years ago • 5 comments

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.

criske avatar Jun 10 '21 17:06 criske