Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-5568

Make HTML responses cachable by Cloudflare

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Released
    • Icon: Should have Should have
    • 2.42.2
    • None
    • 5
    • Performance, Responsiveness
    • Sprint #147

      Most of the static files we serve from the greenpeace.org domain are cached in Cloudflare's edge servers, which means they are geographically close to the end user, so the round trip is almost instant.

      However for the page itself the current settings do not allow it to be cached. So each request needs to go to the same physical server somewhere in the US, adding a large amount of latency, especially if the region is on the other side of the world.

      We already cache these pages in openresty, so they should already be cachable. But maybe still worth to double check this.

      https://support.cloudflare.com/hc/en-us/articles/236166048-Caching-Static-HTML-with-WordPress-WooCommerce

      We may want to set up the cloudflare wordpress plugin at the same time, as it allows to initiate cache purges for pages/attachments that were modified or deleted. Otherwise stale content will be served for up to 30 minutes.

        1. cf-cache.png
          cf-cache.png
          34 kB
        2. cache.png
          cache.png
          25 kB

            nroussos Nikos Roussos
            pvincent Pieter Vincent (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: