VCl Rule

Manoj Kumar manoj.kumar at Xoriant.Com
Tue Nov 2 11:26:43 CET 2010


Hi Team,
 
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.
 
I have tried some options but not able to find the solutions 
 
I tried 
 
req.url !~ "\.ogg$" && obj.size > 10MB
vcl_prefetch() { 

	if obj.http.Content-Length > xxxx { 

		return(pipe); 

	} 

} 

 

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

any rule, varnish is not start.

 

Thanks

Manoj

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20101102/90c340bb/attachment-0003.html>


More information about the varnish-dev mailing list