<story><title>SW-delta: an incremental cache for the web</title><url>https://github.com/gmetais/sw-delta</url></story><parent_chain></parent_chain><comment><author>Scaevolus</author><text>This might make be better as an RFC3229[1] (Delta encoding in HTTP) implementation-- putting the cache information in the querystring is strange when HTTP has a bunch of headers dedicated to it.&lt;p&gt;Cloudflare has a similar solution called Railgun[2] for updating dynamically generated pages. &amp;quot;reddit.com changes by about 2.15% over five minutes and 3.16% over an hour. The New York Times home page changes by about 0.6% over five minutes and 3% over an hour. BBC News changes by about 0.4% over five minutes and 2% over an hour.&amp;quot;&lt;p&gt;[1]: &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;tools.ietf.org&amp;#x2F;html&amp;#x2F;rfc3229&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;tools.ietf.org&amp;#x2F;html&amp;#x2F;rfc3229&lt;/a&gt;
[2]: &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;blog.cloudflare.com&amp;#x2F;efficiently-compressing-dynamically-generated-53805&amp;#x2F;&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;blog.cloudflare.com&amp;#x2F;efficiently-compressing-dynamica...&lt;/a&gt;</text></comment>
<story><title>SW-delta: an incremental cache for the web</title><url>https://github.com/gmetais/sw-delta</url></story><parent_chain></parent_chain><comment><author>eknkc</author><text>Out of curiosity, I went ahead and calculated deltas between jQuery 2.2.3 -&amp;gt; 2.2.4 minified versions.&lt;p&gt;It generated a 512 byte delta string, instead of downloading the new version of 83KB, 512 bytes seems like a pretty significant optimisation. Also, 2300 bytes for 2.2.0 -&amp;gt; 2.2.4.&lt;p&gt;I haven&amp;#x27;t seen a lot of great service worker uses so far but this seems plausible. Good job.&lt;p&gt;Delta if you wonder what it looks like: &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;gist.github.com&amp;#x2F;eknkc&amp;#x2F;fb27cfaee871a007c3cabfda5df03ab0&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;gist.github.com&amp;#x2F;eknkc&amp;#x2F;fb27cfaee871a007c3cabfda5df03a...&lt;/a&gt;</text></comment>