Serve only from cache

Kristian Lyngstol kristian at redpill-linpro.com
Tue Mar 17 11:29:51 CET 2009


On Mon, Mar 16, 2009 at 12:06:30PM -0400, Patricio A. Bruna wrote:
> Hi, 
> Is possible to serve the content only from cache and no go to look for it on the backend. 
> I mean, if we are doing an update to a web site we want the clients only
> see what is on the cache, the old site, and when the update is ready
> start showing the new site. 

Sure. Mark the backend as bad with a health check. If you're using trunk,
that will also trigger grace for expired objects. 

After the site is updated, you can run a purge to get new content.

You'll want to look into "Backend Health Polling".

-- 
Kristian Lyngstøl
Redpill Linpro AS
Tlf: +47 21544179
Mob: +47 99014497
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20090317/a836d7a9/attachment-0004.pgp>


More information about the varnish-dev mailing list