Does not work in TYPO3 v11:
$GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash']['excludedParameters'][] = 'didomiConfig.notice.enable';
Reason is that dots get replaced with underscores _, and TYPO3's cache hash calculator only sees "didomiConfig_notice_enable".