> I use "small" (40 lines of code) storage class, that uses cookies or
> localStorage.

I wasn't able to use cookies for two reasons

a) Cookies aren't ment for data storing but for token storing, so they
provide EXTREMELY limited space. It's hard to push hundreds of
kilobytes into cookies.

b) My intention was to use this module with a website with very heavy
load - millions of pageviews per day. Storing data in a cookie means
that this data is being passed around between the browser and the
server with every request made to the server (while loading images,
static files, etc.). Every kilobyte of data for one million requests
makes about 1 GB of extra traffic. It's not much compared to the
overall traffic, but it's stil 1 GB per day. And I would like to store
not 1 kB but hundreds of kilobytes data. Without the cookies, data is
pulled from the server only when there's actual need, not with every
request.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to 
prototype-core-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to