We have a macro in a richtext editor. Via this macro the editor can insert a code, and in the partial a specific script is then loaded, to insert personalised content. This is working fine, but due to the CSP policy, the script in the macro has a nonce.
Unfortunately the content of the RTE is being cached, including the nonce. So it only works the first time after a publish, but when you refresh the page the script is blocked by the CSP rules.
Is there a way to exlude either the nonce/script or the macro/RTE from the cache?