News for hackers. Stuff that matters.
Re:Pushing Files to the Browser Using Delivery.js, Socket.IO... by rhplus on Saturday February 11, 2012 @04:56PM (#3580290)
The most apparent disadvantage would be the fact that it bipasses traditional caching methods.

And this should be considered a fairly big disadvantage if what you're pushing is publically cacheable. Consider places where a HTTP URI might be cached: client memory, client disk, forward proxy, CDN/reverse proxy, server memory, server disk. A web-sockets delivery mechanism would miss out on half of these caches. Of course, if the files are private and requested infrequently by the client, then a push mechanism might well be preferred.

In-browser file zipping could have a positive impact on transfer speeds

Yes, you really should be compressing your content on the wire (although compressed images, even in base64, might not benefit much), but I'm skeptical that a JS gzip library could compete with the browser's native decompression code. Has anyone done any profiling of JS gzip libraries?

There are no comments on this comment yet.