Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?



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

Search: