Add global option for caching resources.
Merge pull request #278 from Gizra/global-cache

Add global option for caching resources