Conflict with Jetpack Infinite Scroll
-
When I enable the cache feature for my site, the following comment is added to the end of my json file at
/?infinity=scrolling(used for Jetpack Infinite Scrolling):<!-- WP Optimize page cache - https://getwpo.com - Page not served from cache -->This causes the JSON file to be invalid and the script to fail with the following error:
Uncaught SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data at line 2 column 1 of the JSON dataI’ve included the link to an example page where this happens. You can use the Network Inspector to view the file output (auto-expiring link).
I tried adding (and also not adding) the path
/?infinity=scrollingto the “URLs to exclude from caching” setting but that doesn’t have any impact.How can I prevent the comment from being appended to this JSON file (or any other JSON file)?
The page I need help with: [log in to see the link]
The topic ‘Conflict with Jetpack Infinite Scroll’ is closed to new replies.