WordPress.org

Forums

WP Super Cache
"Broken" comment on page with GET variable (1 post)

  1. wesg
    Member
    Posted 2 years ago #

    I'm developing a plugin that uses GET ?x=y on the homepage to trigger a data download (JSON text). Despite setting the "no cache on GET pages" option, I still get the "broken" message as a comment when I print JSON data. It seems to be breaking the json decoding.

    The action itself is triggered in the init hook and terminated with

    header('Content-Type: application/json');
    echo $JSON;
    exit;

    but the comment still gets in there. Suggestions?

    http://wordpress.org/extend/plugins/wp-super-cache/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Super Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.