Welcome! Log In Create A New Profile

Advanced

sub_filter issue about reverse proxy.

Posted by yasoo7964 
sub_filter issue about reverse proxy.
March 05, 2024 03:29AM
Im now building a reverse proxy with Nginx, and i have a js file that sub_filter doesn't effect
such as

AAAA.js
Response Headers
Accept-Ranges: bytes
Connection: keep-alive
Content-Encoding: gzip
Content-Type: text/javascript
strict^transport-security: max-age=31536000
Transfer-Encoding: chunked
Size: 301.50kB
Without CRLF, one liner js.

but my setting of nginx.conf does effect the similer jquerymin.js
such as
ResponseHeasers
Connection: keep-alive
Content-Encoding: gzip
Content-Type: text/javascipt
strict-transport-security: max-age=31536000
Transfer-Encoding: chunked
Size: 93.90kB
Without CRLF, one liner js.

I thought the difference of these two is only the file size, so ive tried like
proxy_buffer_size 1024k;
proxy_buffers 4 1024k;
but nothing changed.

Any suggestion, please.

Best regards. yahoo7964.
Re: sub_filter issue about reverse proxy.
March 27, 2024 10:51PM
Sorry for my pointless question,
I didnt know nginx doesnt unzip and Ive not unzipped these responses,
after I post this I tried to unzip with lua script and use string.gsub instead of sub_filter, and successed.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 296
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready