Update nginx.conf
Browse files- nginx.conf +10 -9
nginx.conf
CHANGED
@@ -19,19 +19,20 @@ location /
|
|
19 |
# proxy_hide_header Upgrade;
|
20 |
|
21 |
add_header X-Cache $upstream_cache_status;
|
22 |
-
|
23 |
#Set Nginx Cache
|
24 |
-
|
25 |
-
|
26 |
-
|
|
|
|
|
27 |
if ( $uri ~* "\.(gif|png|jpg|css|js|woff|woff2)$" )
|
28 |
{
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
if ( $
|
33 |
{
|
34 |
-
|
35 |
}
|
36 |
}
|
37 |
}
|
|
|
19 |
# proxy_hide_header Upgrade;
|
20 |
|
21 |
add_header X-Cache $upstream_cache_status;
|
|
|
22 |
#Set Nginx Cache
|
23 |
+
|
24 |
+
proxy_set_header Accept-Encoding "";
|
25 |
+
sub_filter "/hw/cloudphone/" "/ulhw/cloudphone/";
|
26 |
+
sub_filter_once off;
|
27 |
+
set $static_fileA5bezwgr 0;
|
28 |
if ( $uri ~* "\.(gif|png|jpg|css|js|woff|woff2)$" )
|
29 |
{
|
30 |
+
set $static_fileA5bezwgr 1;
|
31 |
+
expires 1m;
|
32 |
+
}
|
33 |
+
if ( $static_fileA5bezwgr = 0 )
|
34 |
{
|
35 |
+
add_header Cache-Control no-cache;
|
36 |
}
|
37 |
}
|
38 |
}
|