2017 © Pedro Peláez
 

craft-plugin craft3-http2serverpush

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

image

superbig/craft3-http2serverpush

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

  • Wednesday, December 13, 2017
  • by superbig
  • Repository
  • 1 Watchers
  • 9 Stars
  • 1,056 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 2 Versions
  • 33 % Grown

The README.md

HTTP2 Server Push plugin for Craft CMS 3.x

Automatically add HTTP2 Link headers for CSS, JS and image assets., (*1)

Screenshot, (*2)

Requirements

This plugin requires Craft CMS 3.0.0-beta.23 or later., (*3)

Installation

To install the plugin, follow these instructions., (*4)

  1. Open your terminal and go to your Craft project:, (*5)

    cd /path/to/project
  2. Then tell Composer to load the plugin:, (*6)

    composer require superbig/craft3-http2serverpush
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for HTTP2 Server Push., (*7)

HTTP2 Server Push Overview

From The Go Blog:, (*8)

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._, (*9)

Also: Read what CloudFlare has to say about it., (*10)

Configuring HTTP2 Server Push

<?php
return [
    // Limit how many tags to include in the Link tag
    'limit'     => null,

    // Include images
    'includeImages' => false,
];

Using HTTP2 Server Push

After the plugin is installed, Link headers will be added automatically to page template responses., (*11)

Brought to you by Superbig, (*12)

The Versions

13/12 2017

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

 

cms craftcms craft-plugin craft http2 server push

14/11 2017

1.0.0

1.0.0.0

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

  Sources   Download

MIT

The Requires

 

cms craftcms craft-plugin craft http2 server push