Varnish Config

Varnish Config

by Justin Hunt -
Number of replies: 2
Picture of Particularly helpful Moodlers Picture of Plugin developers

Does anyone have a copy of a Varnish config file they are using on Moodle 2.x?

I can't get it to cache anything at all. I can see Varnish is working, but it just passes all requests to the backend and caches nothing.

 

Thanks.

Average of ratings: -
In reply to Justin Hunt

Re: Varnish Config

by dan attwood -

I'm seeing the same thing so if any one has any ideas or configs to share then that would be great

In reply to dan attwood

Re: Varnish Config

by dan attwood -

I got some hits by adding the below to the /etc/varnish/defualt.vcl

sub vcl_recv { if (req.url ~ "^/(theme|pix|blocks|lib)/") { unset req.http.Cookie; } }

 

I'm guessogn there must be more that can be added somewhere

Average of ratings: Useful (1)