Cloudflare

OverviewUse this document to determine which Cloudflare at U-M service best suits your needs.
You can use cURL or Drush to clear your CloudFlare cache by URL, Cache Tags, Hostname, or Prefix. If you need your ZONE_ID or API_TOKEN please send a message to [email protected] by URL: curl -X POST "https://api.cloudflare.com/client/v4/zones//purge_cache" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ --data '{"files":["https://example.com/file1.jpg", "https://example.com/file2.css"]}'Purge by Cache Tags, Hostname, or Prefix: 
This document provides instructions on how to migrate a website behind Cloudflare protection.Once these steps are done, your website will be protected behind Cloudflare but additional steps, below, are needed to complete the setup process.Only migrate websites that are accessible worldwide.
Cloudflare supports directives that you can embed in your web page HTML. These directives will allow you to change how Cloudflare modifies your web page content.
Cloudflare ended support for Drupal 7 in 2016 so there is not a Drupal 7 module available for Cloudflare integration.  The university's instance of Cloudflare will respect all caching headers sent by the web server or CMS, and it will automatically not cache content or serve cached content if it sees that one of the standard PHP session cookies is set.
Turnkey CloudflareTo get a Cloudflare API token to use with a Cloudflare Content Management System module/plugin, send an email to [email protected] with the following information:URL of your websiteWhich Content Management System your website uses (for example, WordPress)Which module or plugin your website will be using for Cloudflare integrationThe ITS Web Hosting team will create the token for you and share it via Dropbox, usually within 1-2 business days.
A Cloudflare plugin for Drupal is necessary to allow Drupal to:
A Cloudflare plugin for WordPress is necessary to allow WordPress to:
Authorized people in university units with Self Service and Basic Cloudflare zones can manage those zones using the Cloudflare Dashboard at https://dash.cloudflare.com/ Cloudflare dashboard access is not available for university units with Turnkey Cloudflare websites. To request changes or reports, Turnkey Cloudflare customers should send a message to [email protected].
For an overview of how Cloudflare caches content, refer to Default Cache Behavior in the Cloudflare documentation. At other institutions, Cloudflare only caches static assets by default; it does not cache HTML (web pages). The University of Michigan has configured most Cloudflare domains so that they do cache HTML (web pages) unless one or more of the following conditions are met: