Move cached header code to own partials.