• Resolved p15h

    (@prestonwordsworth)


    Whilst testing this useful plugin, we find that a request to a default endpoint (ie GET /wp-json/wp/v2/) only gets cached/hits a cache when it’s sent directly from the browser’s address bar, whether logged in or not. When the same request is made indirectly as a result of loading a backend page, the plugin always gets bypassed.

    Is this the intended behaviour?

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

    (@rockfire)

    Hi @prestonwordsworth

    Thank you for using our plugin!

    Yes this is intended behaviour. Those calls in the wp-admin are done using a WP nonce, which means the output can be different per user and therefore isn’t cacheable.

    Thread Starter p15h

    (@prestonwordsworth)

    That makes sense. Great to know!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.