{"id":23691,"date":"2023-04-01T16:25:44","date_gmt":"2023-04-01T09:25:44","guid":{"rendered":"https:\/\/jaybranding.com\/?p=23691"},"modified":"2023-08-18T11:19:32","modified_gmt":"2023-08-18T04:19:32","slug":"super-page-cache-for-cloudflare-toi-uu-hoa-cache-hieu-qua-tuong-duong-wp-rocket","status":"publish","type":"post","link":"https:\/\/jaybranding.com\/en\/super-page-cache-for-cloudflare-toi-uu-hoa-cache-hieu-qua-tuong-duong-wp-rocket\/","title":{"rendered":"Super Page Cache for Cloudflare \u2013 Optimize cache effectively equivalent to WP-rocket"},"content":{"rendered":"<p>Super Page Cache for Cloudflare is a completely free plugin with outstanding features and somewhat comparable to WP-rocket. Before you continue reading this article, you can check the results obtained when enabling Super Page Cache, Enabling WP-rocket and Cache nginx from the server.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdnr2.jaybranding.com\/2023\/04\/Super-Page-Cache-for-Cloudflare.jpg\" alt=\"\" width=\"580\" height=\"1000\" class=\"aligncenter size-medium wp-image-23693\" srcset=\"https:\/\/cdnr2.jaybranding.com\/2023\/04\/Super-Page-Cache-for-Cloudflare.jpg 580w, https:\/\/cdnr2.jaybranding.com\/2023\/04\/Super-Page-Cache-for-Cloudflare-290x500.jpg 290w, https:\/\/cdnr2.jaybranding.com\/2023\/04\/Super-Page-Cache-for-Cloudflare-7x12.jpg 7w, https:\/\/cdnr2.jaybranding.com\/2023\/04\/Super-Page-Cache-for-Cloudflare.jpg 626w\" sizes=\"(max-width: 580px) 100vw, 580px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Instead of just storing static space like images, CSS and JavaScript files, you can use Cloudflare to host your entire WordPress site. So if you have mostly static content and don&#039;t change often, you can let Cloudflare host your site! When combined with <a href=\"https:\/\/www.wp-tweaks.com\/cloudflare-cache-reserve-no-more-caching-plugin\/\" target=\"_blank\" rel=\"noopener\">Cloudflare Cache Reserve<\/a>, Cloudflare can serve as a second hosting provider, mimicking your original web hosting provider for blazing global speeds. Here&#039;s how.<\/p>\n<p>[ez-toc]<\/p>\n<h2>Step 1: Download Super Page Cache for Cloudflare plugin<\/h2>\n<p>While it is possible to configure Cloudflare to host your WordPress site manually, use the plugin to cover all competition and configuration scenarios so you can use the non-hosted version of your site. yours if you want. And the best plugin for that is <a href=\"https:\/\/wordpress.org\/plugins\/wp-cloudflare-page-cache\/\" target=\"_blank\" rel=\"noopener\">Super Page Cache for Cloudflare<\/a> \u2013 formerly known as WP Cloudflare Page Cache.<\/p>\n<p>Download this plugin and go to the configuration screen under \u201cSettings -&gt; Super Page Cache for Cloudflare\u201d.<\/p>\n<h2>Step 2: Get Your Cloudflare Global API Key<\/h2>\n<p>This article does not guide you to create a Cloudflare account, but you can easily create one for free here <a href=\"https:\/\/www.cloudflare.com\" target=\"_blank\" rel=\"noopener\">www.cloudflare.com <\/a><\/p>\n<p>The plugin needs a Global API Key to manage the interface between your website and Cloudflare automatically. To get the API token, login to your Cloudflare dashboard, click on the profile icon in the top right corner and click on \u201cMy Profile\u201d as shown here:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdnr2.jaybranding.com\/2023\/04\/img_6427f89874c05.\" alt=\"https:\/\/cdnr2.jaybranding.com\/2023\/04\/img_6427f89874c05.\" \/><\/p>\n<p>My Profile Cloudflare<\/p>\n<p>Now click on \u201cAPI tokens\u201d on the right side, then find \u201cGlobal API Key\u201d and click on \u201cView\u201d:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdnr2.jaybranding.com\/2023\/04\/img_6427f898c6aed.\" alt=\"https:\/\/cdnr2.jaybranding.com\/2023\/04\/img_6427f898c6aed.\" \/><\/p>\n<p>Get Cloudflare API Key<\/p>\n<p>The next screen will ask you to confirm your Cloudflare password and pass a Turnstile test. Once that&#039;s done, Cloudflare will show you the Global API Key. <strong>Warning: This key is very sensitive.<\/strong> Don&#039;t give it to anyone but you.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdnr2.jaybranding.com\/2023\/04\/img_6427f8992539e.\" alt=\"https:\/\/cdnr2.jaybranding.com\/2023\/04\/img_6427f8992539e.\" \/><\/p>\n<p>Copy your Cloudflare Global API Key<\/p>\n<p>After you have copied this key, return to the Super Page Cache for Cloudflare settings page. For \u201cAuthentication Mode\u201d, click \u201cAPI Key\u201d, select your Cloudflare email ID and paste the provided Global API Key in the box provided as shown here:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdnr2.jaybranding.com\/2023\/04\/img_6427f89977d44.\" alt=\"https:\/\/cdnr2.jaybranding.com\/2023\/04\/img_6427f89977d44.\" \/><\/p>\n<p>Import Cloudflare API Key into Super Page Cache for Cloudflare Plugin<\/p>\n<p>Scroll down, select the domain for which you want to enable Cloudflare hosting for WordPress and save your changes.<\/p>\n<h2>Step 3: Enable Archive and Check It&#039;s Working<\/h2>\n<p>After you finish configuring and saving your settings, you can enable and disable Cloudflare storage for WordPress by enabling the orange buttons at the top of the settings screen as follows:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdnr2.jaybranding.com\/2023\/04\/img_6427f899cbaf4.\" alt=\"https:\/\/cdnr2.jaybranding.com\/2023\/04\/img_6427f899cbaf4.\" \/><\/p>\n<p>Enable and Disable Cloudflare Storage<\/p>\n<p>You can also click the \u201cTest Cache\u201d button and confirm that everything is working as it should:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdnr2.jaybranding.com\/2023\/04\/img_6427f89a2a6c3.\" alt=\"https:\/\/cdnr2.jaybranding.com\/2023\/04\/img_6427f89a2a6c3.\" \/><\/p>\n<p>Check that Super Page Cache for Cloudflare is Working<\/p>\n<p>And you&#039;re done!<\/p>\n<h2>Step 4: Configure Cloudflare WordPress Cache Default Settings<\/h2>\n<p>The default settings for the Super Page Cache for Cloudflare plugin are pretty good. But you can click the \u201cCaching\u201d tab to further configure and fine-tune your experience. For example, when deleting updated pages, I choose to delete only HTML pages \u2013 it&#039;s not necessary to reset the cache for all static files when you&#039;ve just changed a post.<\/p>\n<p>You can also configure Secondary Page Caching, which stores copies of your pages on your server. This is similar to regular WordPress caching plugins like W3 Total Cache. Other advanced options include preloading deleted pages that you configure to your preferences.<\/p>\n<h2>Check that Cloudflare WordPress Page Caching is working<\/h2>\n<p>To test that Cloudflare is caching your WordPress pages, first load a page in the browser to \u201cstart\u201d caching. Then, open the browser&#039;s developer tools by pressing \u201cCtrl + Shift + C\u201d and selecting the \u201cNetwork\u201d tab. When you refresh your page, it will show all the resources the browser has loaded. The first resource will be your page URL. Select it and on the right hand side check \u201cResponse Headers\u201d as shown here:<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-23694 size-full\" src=\"https:\/\/cdnr2.jaybranding.com\/2023\/04\/Pasted-19.png\" \/><\/p>\n<p>Verify that Cloudflare Caching for WordPress is working<\/p>\n<p>There should be a new response header called \u201cCF Caching Status\u201d and the value should be \u201cHIT\u201d as shown above. That means Cloudflare is serving this page from its cache.<\/p>\n<h2>Cloudflare WordPress Caching Fast Response Time<\/h2>\n<p>To test the response time, I use <a href=\"https:\/\/www.wp-tweaks.com\/cloudflare-a-simple-alternative-to-google-analytics\/\" target=\"_blank\" rel=\"noopener\">Cloudflare Analytics, it&#039;s better than Google Analytics to measure<\/a> page speed. You can see that I have an average response time of just 15ms because most of my WordPress sites are served from Cloudflare:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdnr2.jaybranding.com\/2023\/04\/img_6427f89a8ac19.\" alt=\"https:\/\/cdnr2.jaybranding.com\/2023\/04\/img_6427f89a8ac19.\" \/><\/p>\n<p>15ms WordPress Response Time with Cloudflare Caching<\/p>\n<p>That&#039;s faster than any web hosting provider and any regular caching plugin. For faster speeds, you can configure Cloudflare to serve stale content from the cache while it loads fresh objects from the origin server.<\/p>\n<h2>Access an unarchived version of your Page<\/h2>\n<p>Of course, you often want to see the unarchived version of your page. To do this, add the query string \u201c? swcfpc=1\u201d to your URL and it will bypass Cloudflare&#039;s caching. For example, if you want to see the unarchived version of this URL:<\/p>\n<p><a href=\"https:\/\/jaybranding.com\/en\/thiet-ke-trang-web-chuyen-nghiep-chuan-seo\/\">https:\/\/jaybranding.com\/thiet-ke-trang-web-chuyen-nghiep-chuan-seo\/<\/a><br \/>\nChange it to:<\/p>\n<p><a href=\"https:\/\/jaybranding.com\/en\/thiet-ke-trang-web-chuyen-nghiep-chuan-seo\/?swcfpc=1*\">https:\/\/jaybranding.com\/thiet-ke-trang-web-chuyen-nghiep-chuan-seo\/?swcfpc=1*<\/a><\/p>\n<p>Not only does it load the &quot;real&quot; page, but it also changes all links on the page to include the query parameter so you can browse the uncached version of your site without the need for additional query parameters. question each time. It works great!<\/p>","protected":false},"excerpt":{"rendered":"<p>Super Page Cache for Cloudflare is a completely free plugin with outstanding features and somewhat comparable to WP-rocket. Before you continue reading this article, you can see the results obtained when enabling Super Page Cache, Enabling WP-rocket and Cache nginx from the server Instead of [\u2026]<\/p>","protected":false},"author":1,"featured_media":23703,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[92,258],"tags":[909,908,37,907,910],"class_list":["post-23691","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-chuyen-de","category-thiet-ke-website","tag-caching","tag-cloudflare","tag-thiet-ke-web","tag-toi-uu-web","tag-wprocket"],"_links":{"self":[{"href":"https:\/\/jaybranding.com\/en\/wp-json\/wp\/v2\/posts\/23691","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jaybranding.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jaybranding.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jaybranding.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jaybranding.com\/en\/wp-json\/wp\/v2\/comments?post=23691"}],"version-history":[{"count":0,"href":"https:\/\/jaybranding.com\/en\/wp-json\/wp\/v2\/posts\/23691\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jaybranding.com\/en\/wp-json\/wp\/v2\/media\/23703"}],"wp:attachment":[{"href":"https:\/\/jaybranding.com\/en\/wp-json\/wp\/v2\/media?parent=23691"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jaybranding.com\/en\/wp-json\/wp\/v2\/categories?post=23691"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jaybranding.com\/en\/wp-json\/wp\/v2\/tags?post=23691"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}