fix/reimplement FileAndResourcesDirectives (without Range support)