From 84f9f5960b8d14b241010cdf7ef970f9c99161de Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 27 Nov 2020 05:31:55 +0100 Subject: [PATCH] Fix more_set_headers syntax + Expires is irrelevant if Cache-Control is used --- conf/nginx.conf | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 58a3d19..215fb2d 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -13,9 +13,7 @@ location __PATH__/ { client_max_body_size __MAX_FILE_SIZE__M; if ($request_uri ~* ^/(img|css|font|js)/) { - # If uncommented, it triggers some net::ERR_HTTP2_PROTOCOL_ERROR with chromium - #more_set_headers Expires "Thu, 31 Dec 2037 23:55:55 GMT"; - #more_set_headers Cache-Control "public, max-age=315360000"; + more_set_headers "Cache-Control: public, max-age=315360000"; } proxy_pass http://127.0.0.1:__PORT____PATH__;