Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Speed]Update how-do-i-enable-http2-server-push-in-wordpress.mdx #18158

Merged
merged 4 commits into from
Nov 20, 2024
Merged
Changes from 1 commit
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:
pedrosousa marked this conversation as resolved.
Show resolved Hide resolved

```php
define('CLOUDFLARE\_HTTP2\_SERVER\_PUSH\_ACTIVE', true);
pedrosousa marked this conversation as resolved.
Show resolved Hide resolved
```
You should insert this line above where it says *"/\* That's all, stop editing! Happy blogging. \*/*", like follows:|
pedrosousa marked this conversation as resolved.
Show resolved Hide resolved

![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