Skip to content

Commit 345f8d1

Browse files
nenizerapedrosousa
andauthored
[Support] Update HTTP/2 Server Push (#18158)
--------- Co-authored-by: Pedro Sousa <[email protected]>
1 parent 04bf7e3 commit 345f8d1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/content/docs/support/third-party-software/content-management-system-cms/how-do-i-enable-http2-server-push-in-wordpress.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ Article IDs: 115002816808 | How do I enable HTTP/2 Server Push in WordPress
1313

1414
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).
1515

16-
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:
16+
Once the plugin is installed, you can enable HTTP/2 Server Push by adding the following line to your `wp-config.php` file:
1717

18-
*define('CLOUDFLARE\_HTTP2\_SERVER\_PUSH\_ACTIVE', true);*
18+
```php
19+
define('CLOUDFLARE_HTTP2_SERVER_PUSH_ACTIVE', true);
20+
```
1921

2022
You should insert this line above where it says *"/\* That's all, stop editing! Happy blogging. \*/*", like follows:|
2123

0 commit comments

Comments
 (0)