New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pls. refer to doc [Ngx_http_trim_filter](https://tengine.taobao.org/document/http_trim_filter.html) specifically. #1900
Comments
This function is worked for both tengine 3.0.0 and 3.1.0. Upstream Index.html The above comments has been removed from the response by tengine:
|
What is the MIME type of your response specifically? Pls. give the URL and response html specifically. |
if I got url from curl - its good < HTTP/2 200 when I try from browser - no good :status: 200 |
Moreover, tcpdump both on the browser and Tengine Then, you will be able to check the response (without comments) of Tengine specifically. |
i clear cache - Be sure |
its then not working curl 'https://XXX/'
< HTTP/2 200 |
it is not work after upgrade Tengine.
are have old version 3.0
http {
trim on;
#trim_js on;
trim_css on;
nginx -V
Tengine version: Tengine/3.1.0
nginx version: nginx/1.24.0
built by gcc 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04)
built with OpenSSL 1.1.1q 5 Jul 2022
TLS SNI support enabled
configure arguments: --conf-path=/etc/nginx/nginx.conf --sbin-path=/usr/sbin/nginx --error-log-path=/var/log/nginx/error.log --with-threads --http-log-path=/var/log/nginx/ --pid-path=/var/run/nginx.pid --http-log-path=/var/log/nginx/access.log --user=www-data --group=www-data --with-cc-opt=-Wno-error --with-http_realip_module --with-stream_realip_module --with-http_geoip_module --with-stream_geoip_module --add-module=modules/ngx_http_reqstat_module --add-module=modules/ngx_http_trim_filter_module --with-http_v2_module --with-http_ssl_module --with-http_gzip_static_module --add-module=src/http/modules/nginx-module-vts --add-module=src/http/modules/ngx_http_geoip2_module --with-http_perl_module --with-openssl=../openssl-1.1.1q/ --with-openssl-opt=enable-tls1_3 --add-module=src/http/modules/ngx_http_lower_upper_case
E.g.,
Tengine conf:
index.html of upstream with comments:
The comments was removed from the response of upstream by the tengine:
Originally posted by @lianglli in #1896 (comment)
The text was updated successfully, but these errors were encountered: