fixed when resourcePath defined + prevent cache issues