Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ Article IDs: 115002816808 | How do I enable HTTP/2 Server Push in WordPress

Cloudflare supports HTTP/2 Server Push and it can be enabled for stylesheets and scripts using Cloudflare’s WordPress plugin. In order to utilise this feature, you must first ensure you have the Cloudflare WordPress plugin [installed and set-up on your site](https://support.cloudflare.com/hc/en-us/articles/227634427-Using-Cloudflare-with-WordPress).

Once the plugin is installed, you can enable HTTP/2 Server Push simply by adding the following configuration code to your *wp-config.php* file:

*define('CLOUDFLARE\_HTTP2\_SERVER\_PUSH\_ACTIVE', true);*
Once the plugin is installed, you can enable HTTP/2 Server Push simply by adding the following configuration code to your `wp-config.php` file:

```php
define('CLOUDFLARE_HTTP2_SERVER_PUSH_ACTIVE', true);
```
You should insert this line above where it says *"/\* That's all, stop editing! Happy blogging. \*/*", like follows:|

![Old URL: https://support.cloudflare.com/hc/en-us/article\_attachments/115005733547/Screen\_Shot\_2017-02-09\_at\_16.09.31.png
Expand Down
Loading