Only use HistorySupport middleware when config has history or auto.