2 ms·
Facebook's approach seems like a really cool way around browser limitations. ESI is really cool for caching inside your infrastructure, but it doesn't help the
by WALoeIII 16y ago
Facebook's approach seems like a really cool way around browser limitations.
ESI is really cool for caching inside your infrastructure, but it doesn't help the client as much because they have to download the entire page again even if only the time changed in the top bar. I've always dreamed of a way of cutting up my HTML page to have different pieces 'cached' by the browser. A logical next step from this style (which helps you load a client with a cold cache) is to have the client cache each of these pagelets. On subsequent requests you could return JS (and actually you could check a cookie and recycle the JS too!) look in the client's HTML5 storage or some other crafty mechanism which will reduce strain on FB's infrastructure and make it faster for the user.