summaryrefslogtreecommitdiff
path: root/nginx
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2021-11-26 21:27:00 -0500
committerDaniel Micay <danielmicay@gmail.com>2021-11-26 21:27:41 -0500
commit6b26326db537d12d980b6aa2e82f3621bc767b43 (patch)
tree4ba47eb17a3b1fe23cb309a585412b82aa77ee1e /nginx
parent12c7314950ed03cc7ab994001306c4531ad8712b (diff)
use preload header with nopush for repeat visitors
Diffstat (limited to 'nginx')
-rw-r--r--nginx/nginx.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/nginx/nginx.conf b/nginx/nginx.conf
index 5dfe0835..784943dc 100644
--- a/nginx/nginx.conf
+++ b/nginx/nginx.conf
@@ -73,7 +73,7 @@ http {
if_modified_since before;
map $http_cookie $preload_resources {
- "~*__Host-preload=1" "";
+ "~*__Host-preload=1" "<{{path|/main.css}}>; rel=preload; nopush; as=style; integrity={{integrity|/main.css}}, </fonts/roboto-v29-regular-latin.woff2>; rel=preload; nopush; as=font; crossorigin, </fonts/roboto-v29-bold-latin.woff2>; rel=preload; nopush; as=font; crossorigin, <{{path|/mask-icon.svg}}>; rel=preload; nopush; as=image";
default "<{{path|/main.css}}>; rel=preload; as=style; integrity={{integrity|/main.css}}, </fonts/roboto-v29-regular-latin.woff2>; rel=preload; as=font; crossorigin, </fonts/roboto-v29-bold-latin.woff2>; rel=preload; as=font; crossorigin, <{{path|/mask-icon.svg}}>; rel=preload; as=image";
}