feat(rum-core): use etag for fetching config#439
feat(rum-core): use etag for fetching config#439vigneshshanmugam merged 3 commits intoelastic:masterfrom
Conversation
9e0646c to
064dd7f
Compare
Codecov Report
@@ Coverage Diff @@
## master #439 +/- ##
==========================================
- Coverage 94.04% 93.75% -0.29%
==========================================
Files 40 40
Lines 2081 1971 -110
Branches 435 396 -39
==========================================
- Hits 1957 1848 -109
+ Misses 121 120 -1
Partials 3 3
|
vigneshshanmugam
left a comment
There was a problem hiding this comment.
Thanks @jahtalab, The approach looks good to me except for the localStorage part. It would be better if we use SessionStorage instead of LocalStorage since it has less expiry than LocalStorage which is cleared only on explicit browser cache.
Added few comments on the code for other parts.
|
Thanks for the review @vigneshshanmugam , Re. But I also like I will change it for now, we can reconsider in the future if needed! |
store remote config in localStorage
add more tests
064dd7f to
8df861f
Compare
vigneshshanmugam
left a comment
There was a problem hiding this comment.
Thanks @jahtalab Looks good.
* feat(rum-core): use etag for fetching config store remote config in localStorage * use sessionStorage add more tests * ignore falsy values in setLocalConfig
* feat(rum-core): use etag for fetching config store remote config in localStorage * use sessionStorage add more tests * ignore falsy values in setLocalConfig
Part of #253
store remote config in localStorage