Spline / Aurora

3 stars 1 forks source link

LocalStorage for Caching #13

Open ericrange opened 8 years ago

ericrange commented 8 years ago

all intern links on a delivered website should be precached in the localstorage. e.g. if i stay longer more than 5 seconds on a page, start prefetching all relevant information for further sites. this precache contains json data and is the client-side equivalent to the redis cache (server-side).

pablosichert commented 8 years ago

That's definitely worth an idea. Alternatively we could think of limiting that to prefetch when hovering over links? That's up to discussion I would say.

ericrange commented 8 years ago

If you precache the data whenever you hover a link, i think this is already too late. but maybe you could just precache the intern links in the main content section only.

pablosichert commented 8 years ago

Yeah we should make a priority order for content prefetching and maybe additionally prefetch on hover (and validate cache?). I would limit this everything on mobile, though.

ericrange commented 8 years ago

why just for mobile? acutally you need a very low expiration time for this precache. maybe 5 minutes. aurora has the claim to be a real time cms. So you need precaching also for desktop browsers.

pablosichert commented 8 years ago

The point being made was to limit the content prefetching on mobile and not for mobile.

It's arguable if with we could do it anyway with today's flat rates and/or WLAN usage. I'm pretty sure there is no problem, especially if we start prefetching the JSON objects (and not images).