在NGINX中用“通配符”媒体types使用gzip_types / ssi_types

我们有一个应用程序,服务json的媒体types: application/vnd.example.v1.0+jsonapplication/vnd.example.v2.0+json等。

如果我们想使用nginx的http://nginx.org/en/docs/http/ngx_http_ssi_module.html#ssi_types和http://nginx.org/en/docs/http/ngx_http_gzip_module.html#gzip_types 。 我们是否需要追加所有可能的版本号或者是否有通配符?

代替:

 gzip_types "application/vnd.example.v1.0+json" "application/vnd.example.v2.0+json" "application/vnd.example.v3.0+json" 

是类似的

 gzip_types "application/vnd.example*+json" 

可能?

根据NGINX源代码src/http/ngx_http.c

 if (value[i].len == 1 && value[i].data[0] == '*') { 

不,你不能