Add cache and no-cache modes.