caching behaviour for root domains (homepage)

Caunter, Stefan scaunter at topscms.com
Wed Feb 16 16:49:33 CET 2011


You need in vcl_recv

 

if (req.url ~ "^/$"){

                set req.url = "default.aspx";

}

 

and then handle it the way you want.

 

Stefan Caunter 

Operations

Torstar Digital

m: (416) 561-4871

 

 

From: varnish-misc-bounces at varnish-cache.org
[mailto:varnish-misc-bounces at varnish-cache.org] On Behalf Of Xynidakis,
Tony A
Sent: February-15-11 4:58 PM
To: varnish-misc at varnish-cache.org
Subject: caching behaviour for root domains (homepage)

 

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
<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
<mailto:txynidakis at team.telstra.com> 
Address : Level 32, 300 Latrobe St, Melbourne, Vic, 3000 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20110216/0e4ef2e0/attachment-0003.html>


More information about the varnish-misc mailing list