• Resolved Erin Bell

    (@ebellempire)


    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 data

    I’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=scrolling to 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)?

    • This topic was modified 1 year, 10 months ago by Erin Bell. Reason: added link to screenshot of JSON output

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Erin Bell

    (@ebellempire)

    Here’s a screenshot of the JSON output depicting the error: https://ibb.co/R3MNdCj (auto-expiring link)

    • This reply was modified 1 year, 10 months ago by Erin Bell. Reason: auto-expiring link

    Hello,

    Thank you for reporting this, I have asked the development team for further information. I will update you shortly.

    I have the same problem. I need to get rid of this crap. Which is strange i have this pluging on a few websites and the rest is good, only one have this problem.

    I solved this problem. Go to settings and disable (Enable link in admin panel).

    I don’t wanna have the url to ur website in my source code. <!– Cached by WP-Optimize (gzip) – https://getwpo.com – Last modified: February 2, 2024 4:28 pm (UTC:3) –> How to delete this?

    Hello,

    @ebellempire Thank you for your patience. We have identified an incompatibility between WP-Optimize and Jetpack’s infinity scroll feature and this will be fixed in the next release – I don’t have an exact ETA for this but it will be included in the next one.

    @replicon098750 Unfortunately this is not currently possible.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Conflict with Jetpack Infinite Scroll’ is closed to new replies.