diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2021-02-15 04:23:56 -0500 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2021-02-15 04:23:56 -0500 |
| commit | f298ee4b2b6fda254692fcefcaf8aa61f4de6f3e (patch) | |
| tree | ebd7e54d00cb3210c9c91a179724d4410b38d871 /nginx/nginx.conf | |
| parent | 2688ca04a500551fb562520a2cbef1b039cadd81 (diff) | |
use once per session preload / push
Diffstat (limited to 'nginx/nginx.conf')
| -rw-r--r-- | nginx/nginx.conf | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 4e2e1372..149edce6 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -65,6 +65,11 @@ http { if_modified_since before; + map $http_cookie $preload_resources { + "~*__Host-preload=1" ""; + default "</grapheneos.css?29>; rel=preload; as=style, </fonts/roboto_latin.woff2?20>; rel=preload; as=font; crossorigin, </fonts/roboto_bold_latin.woff2?20>; rel=preload; as=font; crossorigin"; + } + server { listen 80 backlog=4096; listen [::]:80 backlog=4096; |
