<HTML dir=ltr><HEAD>
<META content="text/html; charset=unicode" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7600.16625"></HEAD>
<BODY>
<DIV><FONT color=#000000 size=2 face=Arial>Hi Team,</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I am working to use varnish with Mogiles but i have some problem. How can we check the file size in the varnish? because we want that if the file size is greater than 2 MB request will go to Varnish directly no to cache.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I have tried some options but not able to find the solutions </FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I tried </FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><PRE>req.url !~ "\.ogg$" && obj.size > 10MB</PRE><PRE>vcl_prefetch() { </PRE><PRE><BLOCKQUOTE><P>if obj.http.Content-Length > xxxx { </P><BLOCKQUOTE><P>return(pipe); </P></BLOCKQUOTE><P>} </P></BLOCKQUOTE><P>} </P><P> </P><P>Please guide me, i am new to varnish. Also, Is there any way to debug the VCL rules because most of time if i add</P><P>any rule, varnish is not start.</P><P> </P><P>Thanks</P><P>Manoj</P></PRE></DIV></BODY></HTML>