4 ms·
The correct function comes down to what the browser APIs say is valid in navigation. Both loading cached data and making the request again are valid. In the cas
by benatkin 2y ago
The correct function comes down to what the browser APIs say is valid in navigation. Both loading cached data and making the request again are valid. In the case of soft page navigation (onpushstate/onreplacestate) it's very clear that both are valid, as SPAs aren't expected to cache nothing, nor are they expected to cache everything.
- withinboredom 2y agoIf I’m currently filtering some search data and hit refresh (or the browser tab went to sleep and wakes up, or restored after a reboot) I expect it to be in the same place without having to search and filter again.
- benatkin 2y agohttps://en.m.wikipedia.org/wiki/Query_string https://en.m.wikipedia.org/wiki/Query_string
- withinboredom 2y agoYou would(n't) be surprised how many applications don't use this great feature.