added condition ifUrl to avoid filemtime on url resources