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

_______________________________________________
varnish-dev mailing list
[email protected]
http://lists.varnish-cache.org/mailman/listinfo/varnish-dev

Reply via email to