Yichun Zhang
Yichun Zhang
@UMU618 There is no builtin unicode support yet. Just byte streams are supported atm. BTW, please do not use Chinese here. Thank you.
@gumpjt This indeed looks like a problem in the implementation of the `replace_filter_types` directive. Will you mind creating a pull request to address this issue? Many thanks!
@gumpjt One workaround is to use ngx_lua's `header_filter_by_lua*` to conditionally set a custom nginx variable, say, `$skip_replace`, and then reference that variable in the `replace_filter_skip` directive: https://github.com/openresty/replace-filter-nginx-module#replace_filter_skip
@gumpjt Hmm, seems like we should add a new `--prepend-module=PATH` option to OpenResty's `./configure` script so that the modules can be prepended to OpenResty's own `--add-module=PATH` options. Will you contribute...
@theMiddleBlue "If is evil": https://www.nginx.com/resources/wiki/start/topics/depth/ifisevil/ Your example with NGINX's `if` directive will never work as you wish. For your goal, you can use ngx_lua module's header_filter_by_lua\* with ngx_replace_filter's replace_filter_skip directive....
@theMiddleBlue Oh, it's a bit tricky to adjust module order with OpenResty and in your setup, ngx_replace_filter's filter always runs before `header_filter_by_lua` which means the Lua conditional is too late...
@Roycohen It cannot be done in the current implementation though it's certainly possible to modify the current code base to support this. I think your configuration does not quite do...
@Roycohen You need to patch the `ngx_http_replace_body_filter` function for calculating `sub` (i.e., the replacement string) and also most of the functions in the `ngx_http_replace_script.c` file for compiling and evaluating the...
@frozenminds For such fancy requirements, I suggest you go with pure Lua solutions without using such complicated combinations of nginx C modules. You can do complicated streaming upstream and downstream...
@wonderbeyond I think you should use the `srcache_store_skip` directive for that. Zero exptime does not affect whether `srcache_store` is run.