RequestFactory: optimized script path detection performance
RequestFactory: script path detection is case-sensitive (BC break)