mirror of
https://github.com/YunoHost-Apps/lufi_ynh.git
synced 2024-09-03 19:36:28 +02:00
Fix more_set_headers syntax + Expires is irrelevant if Cache-Control is used
This commit is contained in:
parent
2e1695c9f4
commit
84f9f5960b
1 changed files with 1 additions and 3 deletions
|
@ -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__;
|
||||
|
|
Loading…
Add table
Reference in a new issue