added IsHttpResource condition