issues with page refresh

Jack Tuhman drupalnut at
Fri Jul 18 04:36:42 CEST 2008

Hi list,

I am setting up Varnish to protect a drupal site.  My vcl.conf file is at
the bottom of this message:

I am having 2 issues:

1) if a user presses refresh or F5, they do not see any images, if they
click on a link, they see an image.
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?

Also, does anyone have any thing they think I should add to the vcl.conf
file, coming from squid, it seems very simple.
Thanks for the help,

backend default {
        set = "";
        set backend.port = "81";

sub vcl_recv {
        if (req.request == "POST") {

if (req.url ~


sub vcl_fetch {
        # force minimum ttl of 180 seconds
        if (obj.ttl < 180s) {
                set obj.ttl = 180s;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-misc mailing list