We have an application that serves the json with the type of media: application/vnd.example.v1.0+jsonand application/vnd.example.v2.0+jsonetc.
application/vnd.example.v1.0+json
application/vnd.example.v2.0+json
If we want to use nginx http://nginx.org/en/docs/http/ngx_http_ssi_module.html#ssi_types and http://nginx.org/en/docs/http/ngx_http_gzip_module.html#gzip_types . Do I need to add all possible version numbers or is there something like a template?
Instead:
gzip_types "application/vnd.example.v1.0+json" "application/vnd.example.v2.0+json" "application/vnd.example.v3.0+json"
- it's something like
gzip_types "application/vnd.example*+json"
perhaps?
According to NGINX source code src/http/ngx_http.c:
src/http/ngx_http.c
if (value[i].len == 1 && value[i].data[0] == '*') {
No you can't
Source: https://habr.com/ru/post/1621080/More articles:angular ng-repeat data binding function performance - angularjsHow to compare JSON-like text in MySQL 5.6? - jsonoracle with case. It depends on the parameter - oraclehttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1621078/why-does-javascript-isnan-function-declare-string-negative-hex-values-to-be-nan&usg=ALkJrhhU2c1bsBTUiCHz-ftRyGuI127ExAWhat are these unfamiliar lines in a preprocessed C file? - c ++Spring BeanCreationException Auto-aware dependency injection failed - javaКак искать объект StringBuffer в ArrayList? - javaIs it possible to break a breakpoint only when a certain method is present in the call stack? - c ++Send a message to a non-@username phone number using Telegram Bot - apiexplicit constructor accepting `std :: string` gets` char * `and works fine - c ++All Articles