I know browsers already use caching and gzipping to lessen the burden, but why not diffs?
Say I have a 30k+ line javascript file and I change a single character in it. Even gzipped, the browser is going to have to download the whole thing again.. Wouldn’t it be better to use diffing here?
Well that is maybe a good idea for your senario but HTTP is not designed for that. HTTP is designed for serving documents over the internet.
HTTP has the option to say here is your content wich just small differances download the document if you like but you don’t need that. This the the work of the E-Tag with its weak option (
W/...).