Added support for caching external resources