Welcome! Log In Create A New Profile

Advanced

RE: sub_filter (CSS,JS)

Reinis Rozitis
April 12, 2018 03:40AM
> It's working really well, but the issue is, references to their domain aren't being filtered inside their CSS or JS files which are also loading via the proxy URL.

Typically it means that the response from the upstream comes compressed (gzipped) and sub_filter module doesn't handle that.


Try instead of:
> proxy_set_header Accept-Encoding "*";

setting it to empty:
proxy_set_header Accept-Encoding "";


rr

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

sub_filter (CSS,JS)

Adrian Acosta April 12, 2018 02:56AM

RE: sub_filter (CSS,JS)

Reinis Rozitis April 12, 2018 03:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 229
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready