Re:You've Read Your Last Free Article, Such Is the Nature of...
by darby_nine on Saturday June 15, 2024 @10:17PM
(#40694222)
They are semantically different—one is a relative domain name, the other is distinct. I'm not sure how this impacts localstorage or cookies but it might.
[ Parent
| on HN ]
Re:You've Read Your Last Free Article, Such Is the Nature of...
by OptionOfT on Sunday June 16, 2024 @12:21AM
(#40694662)
Localstorage and cookies are stored by domain. If the relative domain is kept relative then it will never be equal to the absolute domain.
Or
let map = HashMap::from_iter([
"www.domain.com.": Cookiebag::new(),
"www.domain.com": Cookiebag::new(),
]);