Refreshing resource cache