PHPackages                             superbig/craft3-http2serverpush - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. superbig/craft3-http2serverpush

AbandonedArchivedCraft-plugin[HTTP &amp; Networking](/categories/http)

superbig/craft3-http2serverpush
===============================

Automatically add HTTP2 Link headers for CSS, JS and image assets.

1.0.1(7y ago)1314.9k31MITPHP

Since Nov 14Pushed 7y ago1 watchersCompare

[ Source](https://github.com/sjelfull/craft3-http2serverpush)[ Packagist](https://packagist.org/packages/superbig/craft3-http2serverpush)[ RSS](/packages/superbig-craft3-http2serverpush/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (1)

HTTP2 Server Push plugin for Craft CMS 3.x
==========================================

[](#http2-server-push-plugin-for-craft-cms-3x)

Automatically add HTTP2 Link headers for CSS, JS and image assets.

[![Screenshot](resources/img/icon.png)](resources/img/icon.png)

Requirements
------------

[](#requirements)

This plugin requires Craft CMS 3.0.0-beta.23 or later.

Installation
------------

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
     composer require superbig/craft3-http2serverpush

    ```
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for HTTP2 Server Push.

HTTP2 Server Push Overview
--------------------------

[](#http2-server-push-overview)

From [The Go Blog](https://blog.golang.org/h2push):

> To improve latency, HTTP/2 introduced server push, which allows the server to push resources to the browser before they are explicitly requested. A server often knows many of the additional resources a page will need and can start pushing those resources as it responds to the initial request. This allows the server to fully utilize an otherwise idle network and improve page load times.\_

Also: [Read what CloudFlare has to say about it](https://blog.cloudflare.com/announcing-support-for-http-2-server-push-2/).

Configuring HTTP2 Server Push
-----------------------------

[](#configuring-http2-server-push)

```
