<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
pre
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:SimSun;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
 /* Page Definitions */
 @page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;
        layout-grid:15.6pt;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=ZH-CN link=blue vlink=purple style='text-justify-trim:punctuation'>

<div class=Section1 style='layout-grid:15.6pt'><pre><font size=3 face=Arial><span
lang=EN-US style='font-size:12.0pt;font-family:Arial'>We use nginx as reserve proxy server and want use proxy_cache to replace squid.<o:p></o:p></span></font></pre><pre><font
size=3 face=Arial><span lang=EN-US style='font-size:12.0pt;font-family:Arial'>There are apache servers </span></font><span
lang=EN>behind nginx, we use deflate module to compress </span><span
class=indent><span lang=EN-US>text/html pages.<o:p></o:p></span></span></pre><pre><font
size=3 face=&#23435;&#20307;><span lang=EN style='font-size:12.0pt'>The problem is if </span></font><font
face=Arial><span lang=EN-US style='font-family:Arial'>proxy_cache has cached the compressed page but the client side that request page does not support uncompress, the page can not be see correctly.<o:p></o:p></span></font></pre><pre><font
size=3 face=&#23435;&#20307;><span lang=EN style='font-size:12.0pt'>I know squid using http header Accept-Encoding to store</span><span
lang=EN> </span></font><span lang=EN>different cache file, but there is no way to use it in nginx proxy_cache_key. <o:p></o:p></span></pre><pre><font
size=3 face=&#23435;&#20307;><span lang=EN style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></pre><pre><font
size=3 face=&#23435;&#20307;><span lang=EN style='font-size:12.0pt'>Thanks<o:p></o:p></span></font></pre><pre><font
size=3 face=&#23435;&#20307;><span lang=EN style='font-size:12.0pt'>yahwist<o:p></o:p></span></font></pre>

<p class=MsoNormal><font size=1 face=Arial><span lang=EN style='font-size:9.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>