allow resource expansions to be cached (fix greedy non-caching condition...