check cache resource before bundle resource