Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Varnish: Misc

pass and cache at the same time

 

 

Varnish misc RSS feed   Index | Next | Previous | View Threaded


mailing.lists.wam at gmail

May 26, 2012, 6:18 AM

Post #1 of 2 (213 views)
Permalink
pass and cache at the same time

Hi,

In my vcl_fetch i return(pass) for specifics url, but i want to create a cached version too, in case my backend fails i would be able to serve grace version, how can i achieve this ? I thought of using restart, to first create a cached version and then do the pass, using intermediary http-header.

Regards,


_______________________________________________
varnish-misc mailing list
varnish-misc [at] varnish-cache
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc


footplus at gmail

May 26, 2012, 10:30 AM

Post #2 of 2 (203 views)
Permalink
Re: pass and cache at the same time [In reply to]

Hello,

You may perhaps do a lookup, but set the ttl to 0s for these particular URLs.

This way you may perhaps be able to never serve expired objects unless your backend is dead...

Regards,
--
Aurélien
Sent from my phone

Le 26 mai 2012 à 15:18, Mailing Lists <mailing.lists.wam [at] gmail> a écrit :

> Hi,
>
> In my vcl_fetch i return(pass) for specifics url, but i want to create a cached version too, in case my backend fails i would be able to serve grace version, how can i achieve this ? I thought of using restart, to first create a cached version and then do the pass, using intermediary http-header.
>
> Regards,
>
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc [at] varnish-cache
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

_______________________________________________
varnish-misc mailing list
varnish-misc [at] varnish-cache
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Varnish misc RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.