mirror of
https://github.com/YunoHost-Apps/lufi_ynh.git
synced 2024-09-03 19:36:28 +02:00
Merge pull request #46 from YunoHost-Apps/fix-chromium-http2-error
[fix] Chromium net::ERR_HTTP2_PROTOCOL_ERROR 200
This commit is contained in:
commit
e8a1f759f4
1 changed files with 4 additions and 2 deletions
|
@ -13,8 +13,10 @@ location __PATH__/ {
|
||||||
client_max_body_size __MAX_FILE_SIZE__M;
|
client_max_body_size __MAX_FILE_SIZE__M;
|
||||||
|
|
||||||
if ($request_uri ~* ^/(img|css|font|js)/) {
|
if ($request_uri ~* ^/(img|css|font|js)/) {
|
||||||
more_set_headers Expires "Thu, 31 Dec 2037 23:55:55 GMT";
|
# If uncommented, it triggers some net::ERR_HTTP2_PROTOCOL_ERROR
|
||||||
more_set_headers Cache-Control "public, max-age=315360000";
|
# with chromium
|
||||||
|
#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__;
|
proxy_pass http://127.0.0.1:__PORT____PATH__;
|
||||||
|
|
Loading…
Add table
Reference in a new issue