<div dir="ltr">Hi list,<br><br>I am setting up Varnish to protect a drupal site. My vcl.conf file is at the bottom of this message:<br><br><br>I am having 2 issues:<br><br>1) if a user presses refresh or F5, they do not see any images, if they click on a link, they see an image.<br>
2) If I wanted Varnish to cache the php pages (right now I pass them) but clear its cache every 30 seconds, is there an easy way to do this? <br><br><br>Also, does anyone have any thing they think I should add to the vcl.conf file, coming from squid, it seems very simple. <br>
Thanks for the help,<br>Jack<br><br><br>backend default {<br> set backend.host = "<a href="http://10.10.0.10">10.10.0.10</a>";<br> set backend.port = "81";<br>}<br><br>sub vcl_recv {<br> if (req.request == "POST") {<br>
pipe;<br> }<br><br><br>if (req.url ~ "\.(ico|gif|jpeg|jpg|png|swf|css|htc|js|bz2|gz|zip|xls|ppt|pdf|doc|rar)")<br>{<br> lookup;<br>}<br> pass;<br><br>}<br><br>sub vcl_fetch {<br>
# force minimum ttl of 180 seconds<br> if (obj.ttl < 180s) {<br> set obj.ttl = 180s;<br> }<br>}<br><br></div>