This repository was archived by the owner on Nov 22, 2024. It is now read-only.
Commit b5c2eb2
authored
fix(common): handle arrays in querystrings
caching GET request with query string with array of parameter gets the first value only.
it breaks caching for the same url with different query string for example
for api http://api.example.com?params=1¶ms=2¶ms=3 cache key will be http://api.example.com?params=1
for api http://api.example.com?params=1¶ms=2 cache key will be the same http://api.example.com?params=1
and therefor API request will not be sent to server.1 parent 7a4032a commit b5c2eb2
2 files changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
39 | 45 | | |
40 | 46 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
0 commit comments