Prefer specific type over */* in directoy middleware