cache uri + remove constants duplication
endsWith test & impl (for path & test)