Most of these frontend configurations share cache configuration code, pull it out so that changes to caches don't have to require changing multiple config files.