anchor.diff:      set req.url = regsuball(req.url,"80","443"); 
       set req.url = regsuball(req.url,"http","https");
       ban(" req.url == " + req.url);
  -    # Throw a synthetic page so the
  -    # request won't go to the backend.
       error 200 "Added ban.";      
     }
   
  
positive.code:     remove beresp.http.Set-Cookie;
    }
  
    # Default minimum cache period 
    if(!(req.http.Cookie)&&!(beresp.http.Set-Cookie)&&(req.request == "GET")) {
       set beresp.ttl = <%= @min_cache_time %>;
    }
  
    if ( 
       # Static file cache
       (req.url ~ "(?i)\.(jpg|jpeg|gif|png|tiff|tif|svg|swf|ico|css|kss|js|vsd|doc|ppt|pps|xls|pdf|mp3|mp4|m4a|ogg|mov|avi|wmv|sxw|zip|gz|bz2|tar|rar|odc|odb|odf|odg|odi|odp|ods|odt|sxc|sxd|sxi|sxw|dmg|torrent|deb|msi|iso|rpm|jar|class|flv|exe)$")||
       # Plone images cache
       (req.url ~ "(?i)(image|imagem_large|image_preview|image_mini|image_thumb|image_tile|image_icon|imagem_listing)$")
    ) {
      set beresp.ttl = <%= @static_cache_time %>;
      remove beresp.http.Set-Cookie;
    }
  
    #Avoid cache of objects > 100M
  
negative.code:     set beresp.ttl = <%= @static_cache_time %>; 
      return (hit_for_pass);
    } 
  }
  
  sub vcl_deliver {
    if (obj.hits > 0) {
      set resp.http.X-Cache = "HIT";
    } else {
      set resp.http.X-Cache = "MISS";
    }
  }
  
  sub vcl_error {
    ## Moved Permanently
    if (obj.status == 750) {
      set obj.http.Location = obj.response;
      set obj.status = 301;
      return(deliver);
    }
  
    set obj.http.Content-Type = "text/html; charset=utf-8";
    set obj.http.Retry-After = "5";
    synthetic {"
   <?xml version="1.0" encoding="utf-8"?>
   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  