sub_filter (CSS,JS)

Reinis Rozitis r at roze.lv
Thu Apr 12 07:39:10 UTC 2018


> 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



More information about the nginx mailing list