Home  >  Article  >  Backend Development  >  nginx代理缓存乱码问题

nginx代理缓存乱码问题

WBOY
WBOYOriginal
2016-05-19 14:05:111104browse
今天发现nginx代理缓存的部分文件一刷新就出现乱码,后检查发现后端apache服务器开启了deflate压缩,故需要修改nginx缓存的设置,加入如下
PRoxy_set_header Accept-Encoding '';#让后端不要返回压缩(gzip或deflate)的内容
搞定乱码
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn