made Resource.cache exported