@abtnode/router-provider 1.16.14-beta-811ed435 → 1.16.14-beta-08abf537

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,7 +21,6 @@ brotli_types
21
21
  image/vnd.microsoft.icon
22
22
  image/x-icon
23
23
  image/x-win-bitmap
24
- text/html
25
24
  text/css
26
25
  text/javascript
27
26
  text/plain
@@ -1,4 +1,15 @@
1
- proxy_cache_key $scheme$proxy_host$request_uri;
1
+ set $tmp_webp "0";
2
+ if ($http_accept ~ image/webp) {
3
+ set $tmp_webp "1";
4
+ }
5
+ if ($request_uri ~ f=webp) {
6
+ set $tmp_webp "${tmp_webp}1";
7
+ }
8
+ if ($tmp_webp = "11") {
9
+ set $tmp_cache_key_webp "1";
10
+ }
11
+
12
+ proxy_cache_key $scheme$proxy_host$uri$is_args$args$tmp_cache_key_webp;
2
13
  proxy_cache_bypass $cookie_nocache $arg_nocache;
3
14
  proxy_cache_lock on;
4
15
  proxy_cache_revalidate on;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abtnode/router-provider",
3
- "version": "1.16.14-beta-811ed435",
3
+ "version": "1.16.14-beta-08abf537",
4
4
  "description": "Routing engine implementations for abt node",
5
5
  "author": "polunzh <polunzh@gmail.com>",
6
6
  "homepage": "https://github.com/ArcBlock/blocklet-server#readme",
@@ -32,10 +32,10 @@
32
32
  "url": "https://github.com/ArcBlock/blocklet-server/issues"
33
33
  },
34
34
  "dependencies": {
35
- "@abtnode/constant": "1.16.14-beta-811ed435",
36
- "@abtnode/logger": "1.16.14-beta-811ed435",
37
- "@abtnode/router-templates": "1.16.14-beta-811ed435",
38
- "@abtnode/util": "1.16.14-beta-811ed435",
35
+ "@abtnode/constant": "1.16.14-beta-08abf537",
36
+ "@abtnode/logger": "1.16.14-beta-08abf537",
37
+ "@abtnode/router-templates": "1.16.14-beta-08abf537",
38
+ "@abtnode/util": "1.16.14-beta-08abf537",
39
39
  "@arcblock/http-proxy": "^1.19.1",
40
40
  "axios": "^0.27.2",
41
41
  "debug": "^4.3.4",
@@ -59,5 +59,5 @@
59
59
  "bluebird": "^3.7.2",
60
60
  "fs-extra": "^10.1.0"
61
61
  },
62
- "gitHead": "4525537afdeeb910675c28e2bf60a6d4ecf3b1f1"
62
+ "gitHead": "656c4bf8e2ca94cdc604a5d45ba7e8c3443f1dac"
63
63
  }