diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2021-12-05 02:48:44 -0500 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2021-12-05 02:48:44 -0500 |
| commit | 7010b230c526d716f5899c1f4ea104a965625a23 (patch) | |
| tree | 26df258bf3d764b6250c08cd7aacd98ae026eaa1 /process-static | |
| parent | 27c50cd9a7a464ef47db416f24ee3bff8f8bbcca (diff) | |
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.
Diffstat (limited to 'process-static')
| -rwxr-xr-x | process-static | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
