Apache 2.4 issue "Apache is not sending 304 response (if mod_deflate and AddOutputFilterByType is enabled)"

refer to http://stackoverflow.com/questions/896974/apache-is-not-sending-304-response-if-mod-deflate-and-addoutputfilterbytype-is

http://scarff.id.au/blog/2009/apache-304-and-mod_deflate-revisited/

 

Fix solution:

#add following to .htaccess or httpd.conf
<IfModule mod_headers.c>
RequestHeader edit "If-None-Match" "^\"(.*)-gzip\"$" "\"$1\""
</IfModule>

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。