CMS-2380 Disable perfect-caching in createResourceUrl when pointing to a directory.