njs-examples
njs-examples copied to clipboard
js_body_filter & sendBuffer source change
Hello, is there any way to use js_body_filter and sendBuffer to remove some chars from the source? Nginx is waiting for the same content length, if the content length is changed(removed something), the page is keep loading without stopping. One workaround I got is to replace those characters with a space, to get same content length. Is there another workaround ? Preferably without js_content. Thanks.