Hello @chaudhry111
Thank you for the support topic, it seems that the LiteSpeed cache is conflicting with the Site scan feature we are investigating the issue.
In the meantime, I will recommend trying another Cache plugin, such as WP Super Cache, W3 Total cache (they have an add-on for AMP)
Hope this helps!
Hello @chaudhry111
Thank you for the support topic, We found the issue LiteSpeed Cache plugin is appending comments such as <!-- Page generated by LiteSpeed Cache 4.4.6 on 2022-01-07 13:33:44 --> in JSON response which is breaking response.
Please add the following code snippet to suppress the comment in your active theme’s functions.php (preferable child theme) or in a custom plugin using FTP or Tools such as Cpanel
Code snippet:
add_filter( 'litespeed_comment', '__return_false' );
Hope this helps!
The code provided by you has resolved the issue.
Thank you very much for the wonderful support.
I thought LightSpeed fixed this issue. It should only be appending that HTML comment of the Content-Type is text/html.