Enable Cloudflare Dev Mode
December 5, 2024 · AI Conversations
1. **Log in to Cloudflare:**
Go to the [Cloudflare dashboard](https://dash.cloudflare.com/) and log in with your credentials.
2. **Select Your Site:**
From the list of your sites, click on the one for which you want to enable Development Mode.
3. **Access the Caching Section:**
On the left sidebar, click on **Caching**.
4. **Enable Development Mode:**
In the Caching section, you’ll see an option for **Development Mode**. Click the button to turn it on. Development Mode will be active for 3 hours.
5. **Set up a Page Rule (for permanent solution):**
Since Development Mode only lasts for 3 hours, you can create a page rule to bypass the cache permanently:
– Go to the **Page Rules** tab in the sidebar.
– Click on **Create Page Rule**.
– Enter your domain (e.g., `*yourdomain.com/*`).
– Under **Then the settings are**, select **Cache Level** and set it to **Bypass**.
– Save and deploy the page rule.
6. **Using Cloudflare API (optional):**
If you want to automate the process, you can use the Cloudflare API to enable Development Mode programmatically. You would need to make a request to the endpoint for setting the cache level to bypass as needed.
**Note:** Keeping Development Mode on for an extended period may slow down your site for users, as it disables Cloudflare's caching features. It's usually recommended to enable it only during development and testing phases, then turn it off to benefit from caching.
After implementing these steps, your site should bypass the cache, effectively keeping Development Mode enabled.