Issue #2914110 by Berdir, neclimdul, acbramley, yongt9412, Wim Leers, arpad.rozsa, kim.pepper, Fabianx, davidwhthomas, pameeela, kualee, amateescu, jibran, longwave: Shortcut hook_toolbar implementation makes all pages uncacheable (cherry picked from commit b941c7c4)