• There are instances where it’s worth delivering a HTML response to avoid having to parse a massive HTML in JSON on the JavaScript.

    I would love if there was a way for you all to support to caching plain text instead of having to convert to JSON.

    Example:
    wp-content/plugins/wp-rest-cache/includes/api/class-endpoint-api.php@L410

Viewing 1 replies (of 1 total)
  • Plugin Author Richard Korthuis

    (@rockfire)

    Hi @bordoni

    Thank you for using our plugin!

    I am afraid supporting other formats than JSON isn’t something we can do. Our code relies heavily on the output of the REST API to be JSON. I.e. we use the JSON to detemine cache relations, with JSON we can simply process an array recursively. With HTML that is not an option and without the cache relations our plugin becomes a lot less useful.

Viewing 1 replies (of 1 total)

The topic ‘Allow diff formats other than JSON’ is closed to new replies.