caching behaviour for root domains (homepage)

David Murphy david at firechaser.com
Wed Feb 16 14:37:59 CET 2011


 I'm new too :) , so not sure if this is the best way, but something
like this might work?

sub vcl_recv {
   if (  req.url ~ "\.(aspx)$"  || req.url ~ "^/$" ) {
      # don't lookup cache for .aspx pages or root /
      return(pass);
   } else {
     return(lookup);
   }
}

Best, David

On Tue, Feb 15, 2011 at 9:57 PM, Xynidakis, Tony A
<Antony.A.Xynidakis at team.telstra.com> wrote:
> Hi all
>
> This is my first post and still learning Varnish
>
> in the configs for varnish, we set up the caching rules not to cache .aspx
> pages.
>
> our home page is the root domain  http://v8supercars.com.au
>
> in the varnish trace the request is 'GET /' which makes sense but without
> the .aspx extension it's doesn't get fall into the .aspx rule that we have.
>
> is there additional rules that we need to add into the configs.
>
> Kind regards
>
> Tony
>
>
>
> Tony Xynidakis
> Content and Media - BigPond
> Phone (: (03) 9632 8161
> Fax 1: (03) 9600 1235
> Mobile (: 0419 110 409
> Email *: txynidakis at team.telstra.com
> Address : Level 32, 300 Latrobe St, Melbourne, Vic, 3000
>
>
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>




More information about the varnish-misc mailing list