<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16414" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=863383108-10052007>I have question 
about caching functionality in nginx.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=863383108-10052007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=863383108-10052007>
<DIV><FONT face=Arial size=2><SPAN class=863383108-10052007>The purpose is to 
use nginx on local server to speed up responses from &lt;remote 
server&gt;.</SPAN></FONT></DIV></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=863383108-10052007>1. Will the 
following configuation cache static content from &lt;remote server&gt; for 5d 
?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=863383108-10052007>2. Where will the 
cached content be stored ? Directory ../nginx/proxy_temp is always 
empty.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=863383108-10052007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=863383108-10052007>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
location ~* 
^.+.(jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|css|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js|swf|xml)$ 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
conf/mime.types;&nbsp;&nbsp;&nbsp;&nb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sp;&nbsp;&nbsp; 
</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV align=left><FONT size=2></FONT>
<P align=left><FONT size=1><FONT face=Tahoma><FONT size=2>Martin 
Minka<BR></FONT></FONT></FONT></P></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></BODY></HTML>