Cache rest api endpoints in Cloudflare

XMLWordPrintable

    • Type: Task
    • Resolution: Released
    • Priority: Should have
    • 2.42.2
    • None

      We recently started adding endpoints to fetch certain data used by frontend rendered blocks. Unfortunately the performance of these endpoints is quite bad (.5 to 1 second response time). Currently these GET requests are not cached by Cloudflare because they use a query string.

      Tasks

      • Add a Page Rule in Cloudflare to cache all wp-json endpoints.
      • Test the behaviour and assess whether PLANET-5569 is still needed.

        1. cf-cache.png
          cf-cache.png
          34 kB
        2. wp-json.png
          wp-json.png
          20 kB

            Assignee:
            Nikos Roussos
            Reporter:
            Nikos Roussos
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: