Great! I added this line to my wp-config:
define( 'AUTOPTIMIZE_SETUP_INITHOOK', 'init' );
Thank you for this amazingly fast support!
Thank you for the quick answer. I found out that it conflicts with my absolutely necessary domain mapping plugin. Do you use any domain mapping plugin or do you have any idea how I can solve this?
Edit: This is exactly my case: https://ww.wp.xz.cn/support/topic/redirection-loop-with-2-4-1/