Web サイトのレンダリング速度を最適化しようとしています。
しかし、Nginx は rel="preload" で CSS リンクを提供していません。rel="stylesheet" の場合は正常に動作しています。
<link href="css/fontawesome.css" rel="preload" onload="clearRel()" as="style"/>
新しいnginxバージョン1.13.7をインストールしました。インストールしたモジュールは次のとおりです。
nginx version: nginx/1.13.7
built by gcc 4.9.2 (Debian 4.9.2-10)
built with OpenSSL 1.0.2l 25 May 2017
TLS SNI support enabled
configure arguments: --add-module=/root/ngx_pagespeed-latest-stable
--with-compat
--with-file-aio
--with-threads
--with-http_addition_module
--with-http_auth_request_module
--with-http_dav_module
--with-http_flv_module
--with-http_gunzip_module
--with-http_gzip_static_module
--with-http_mp4_module
--with-http_random_index_module
--with-http_realip_module
--with-http_slice_module
--with-http_ssl_module
--with-http_sub_module
--with-http_stub_status_module
--with-http_v2_module
--with-http_secure_link_module
--with-mail
--with-mail_ssl_module
--with-stream
--with-stream_realip_module
--with-stream_ssl_module
--with-stream_ssl_preread_module
--with-debug
--with-cc-opt='-g
-O2
-fPIE
-fstack-protector-strong
-Wformat
-Werror=format-security
-Wdate-time
-D_FORTIFY_SOURCE=2'
--with-ld-opt='-Wl,-Bsymbolic-functions
-fPIE
-pie
-Wl,-z,relro
-Wl,-z,now'
rel="preload" の場合、一致する css ファイルのログがありません。
私を助けてみてください。
事前にどうもありがとうございました。