From 7010b230c526d716f5899c1f4ea104a965625a23 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sun, 5 Dec 2021 02:48:44 -0500 Subject: 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. --- process-static | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'process-static') diff --git a/process-static b/process-static index de2d0465..86e41fcf 100755 --- a/process-static +++ b/process-static @@ -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 -- cgit v1.3.1