shed219 commited on
Commit
4bca313
·
1 Parent(s): cb1407b

Update nginx.conf

Browse files
Files changed (1) hide show
  1. 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
- set $static_filezSQpJEkr 0;
 
 
27
  if ( $uri ~* "\.(gif|png|jpg|css|js|woff|woff2)$" )
28
  {
29
- set $static_filezSQpJEkr 1;
30
- expires 1m;
31
- }
32
- if ( $static_filezSQpJEkr = 0 )
33
  {
34
- add_header Cache-Control no-cache;
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
  }