Rebuild cache and top header