出于前端调试的目的,我设置了一个 netcat 代理来拦截 HTTP 请求,例如:
$ mkfifo /tmp/backpipe
$ while true; do nc -vv -l -k 12345 < /tmp/backpipe | tee -a requests.in | nc localhost 80 | tee -a requests.out > /tmp/backpipe; done
它工作得很好,但是在 firebug 中,当在端口 12345 上访问我的 Web 应用程序时,我在“网络”面板中的某些请求出现红色“已中止”状态,导致某些资源无法加载(如某些脚本或样式表.. .)。但是,在端口 80 上一切正常。
这种“中止”状态究竟是什么意思?
PS:我的浏览器缓存被禁用了。
谢谢你。