Huh, isn't that just a normal caching HTTP proxy like Squid?
If 2 sites both use jquery.cdn/1.3.4/jquery.min.js, your browser should have it in the cache, or alternatively your caching proxy server would just serve you the bits it already downloaded earlier.