Add global option for caching resources

Like this switching resources that didn't explicitly set the caching would be easier.