Hacker News new | past | comments | ask | show | jobs | submit login

How is that done?

Isn't there a limita Limit of 5Mb(?) per Domain definend in the HTML5 Spec for LocalStorage?




http://feross.org/fill-disk/

He explains here that most browsers (except Firefox) don't follow the standard close enough, and ignore the exception for subdomains, i.e. 1.filldisk.com, 2.filldisk.com, etc.


Wait, haven't I heard this song before?

It's the one about cookies, and .co.uk (i.e. every commercial site in the UK) sites all sharing the same cookies, because they all look like subdomains. Or was it all .friendly-hosting-company.com sites?

The fundamental problem is, there's no easy way to distinguish domains and subdomains.


It doesn't happen for .co.uk, it does happen for .nhs.uk (by design).

http://publicsuffix.org/ has the list that you use to distinguish


Because most of the browser vendors see "standards" as more like "suggestions".

I'm sure any web developer will tell you it's been a problem from the moment there was more than one browser. This is just a particularly hilarious example.


per SUBdomain. So just use:

example.com

1.example.com

2.example.com

...


In the spec, it's per domain. As implemented in Chrome/Safari/IE, it's per subdomain.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: