use http2_push instead of http2_push_preload

This avoids needing to conditionally add nopush to each preloaded
resource in the Link header. There's also no support for pushing
JavaScript modules via http2_push_preload since nginx doesn't have
support for rel=modulepreload.
This commit is contained in:
Daniel Micay
2021-12-05 02:48:44 -05:00
parent 27c50cd9a7
commit 7010b230c5
3 changed files with 22 additions and 8 deletions

View File

@@ -41,7 +41,7 @@ for file in static-tmp/**/*.css static-tmp/js/*.js static-tmp/mask-icon.svg; do
replace+=";s@{{path|/${file#*/}}}@/${dest#*/}@g"
done
sed -i "$replace" static-tmp/**/*.html nginx-tmp/nginx.conf
sed -i "$replace" static-tmp/**/*.html nginx-tmp/nginx.conf nginx-tmp/snippets/preload.conf
gixy nginx-tmp/nginx.conf