WP Discourse - Ajax comments not loading (Litespeed cache)

Hello,

We have caching setup with litespeed cache. Comments are loaded and working ok via the webhook, however due to page caching unauthenticated viewers are often viewing a cached page, so cannot see new comments.

The webhook/comments being sync’d do not trigger a cache refresh of that specific page.

So i’ve tried to enable loading via ajax instead, however all comments disappear and do not load at all. When viewing the page, /wp-content/plugins/wp-discourse/js/load-comments.js is loaded but no ajax requests are made.

I’ve also excluded the /wp-content/plugins/wp-discourse/ path from the JS/CSS cache in Litespeed.