From 9419b1e137a85b2ab391ea7ab571c8be86f95f9e Mon Sep 17 00:00:00 2001 From: Kayou Date: Wed, 20 Mar 2019 00:32:40 +0100 Subject: [PATCH] more_set_headers for nginx --- conf/nginx.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index d32e99c..3d053b6 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -11,8 +11,8 @@ location __PATH__ { client_max_body_size __MAX_FILE_SIZE__M; if ($request_uri ~* ^/(img|css|font|js)/) { - add_header Expires "Thu, 31 Dec 2037 23:55:55 GMT"; - add_header Cache-Control "public, max-age=315360000"; + more_set_headers Expires "Thu, 31 Dec 2037 23:55:55 GMT"; + more_set_headers Cache-Control "public, max-age=315360000"; } proxy_pass http://127.0.0.1:__PORT____PATH__;