Network caching system for ISPs and enterprises