php - Apache: http2 push assets loaded two times -


i've configured windows apache web server http2.

i've enabled module

loadmodule http2_module modules/mod_http2.so 

and in vhost i've added:

<virtualhost *:443>     <ifmodule mod_http2.c>       protocols h2 http/1.1     </ifmodule> ... </virtualhost> 

i create example page in php:

<?php    header('link: </test.js>; rel=preload; as=script', false);    header('link: </test.css>; rel=preload; as=style', false); ?> <html> <head> <link rel="stylesheet" type="text/css" href="test.css"> </head> <body> <script src="/test.js"></script> </body> </html> 

but chrome console shows me these files downloaded 2 times.

enter image description here

following listed header sent server. use apache 2.4.25

enter image description here

is normal behaviour?

is correct configuration?


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -