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.
following listed header sent server. use apache 2.4.25
is normal behaviour?
is correct configuration?


Comments
Post a Comment