Resource loading caching