Cache dependencies for location-aware resources

Add support for automatic resolution of cache dependencies for location-aware resources.