diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-10-19 18:03:50 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-10-20 11:28:48 +0300 |
commit | c4917b4041f61d61cbfb37dca8bd8e86515acbca (patch) | |
tree | 30bc61e814dd5cbab746cfca3dbb42124f34f720 /ncp-web | |
parent | bd74eb477fd42ce7c82a3353a9eddb971e1acec4 (diff) |
Revert "ncp-web: remove http2 push headers. They dont play well with pwauth (#224)"
This reverts commit e3ef9730bf54d68cb04a009db6b2786c190eabc9.
Diffstat (limited to 'ncp-web')
-rw-r--r-- | ncp-web/index.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ncp-web/index.php b/ncp-web/index.php index c184b982..bbc7c256 100644 --- a/ncp-web/index.php +++ b/ncp-web/index.php @@ -30,6 +30,9 @@ ini_set('session.cookie_httponly', 1); if ( isset($_SERVER['HTTPS']) ) ini_set('session.cookie_secure', 1); + + // HTTP2 push headers + header("Link: </minified.js>; rel=preload; as=script;,</ncp.js>; rel=preload; as=script;,</ncp.css>; rel=preload; as=style;,</ncp-logo.png>; rel=preload; as=image;, </loading-small.gif>; rel=preload; as=image;, rel=preconnect href=ncp-launcher.php;"); ?> <link rel="icon" type="image/png" href="favicon.png" /> <link rel="stylesheet" href="ncp.css"> |