Enhanced caching of static resources