• Pål Hermunn Johansen's avatar
    Reintroduce the req.grace variable, change keep behavior · d2d09318
    Pål Hermunn Johansen authored
    This is a back port of ff38535a
    
    The req.grace variable can be set in vcl_recv to cap the grace
    of objects in the cache, in the same way as in 3.0.x
    
    The "keep" behavior changes with this patch. We now always go
    to vcl_miss when the expired object is out of grace, or we go
    to the waiting list. The result is that it is no longer
    possible to deliver a "keep" object in vcl_hit.
    
    Note that when we get to vcl_miss, we will still have the 304
    candidate, but without the detour by vcl_hit.
    
    This commit changes VCL, but only slightly, so we aim to back
    port this to earlier versions of Varnish Cache.
    
    Refs: #1799 and #2519
    
    Conflicts:
    	bin/varnishd/cache/cache_hash.c
    	bin/varnishd/cache/cache_req_fsm.c
    	bin/varnishd/cache/cache_varnishd.h
    	bin/varnishd/cache/cache_vrt_var.c
    	doc/sphinx/reference/vcl_var.rst
    d2d09318
Name
Last commit
Last update
..
Makefile.am Loading commit data...
Makefile.phk Loading commit data...
flint.lnt Loading commit data...
flint.sh Loading commit data...
generate.py Loading commit data...
vcc_acl.c Loading commit data...
vcc_action.c Loading commit data...
vcc_backend.c Loading commit data...
vcc_backend_util.c Loading commit data...
vcc_compile.c Loading commit data...
vcc_compile.h Loading commit data...
vcc_expr.c Loading commit data...
vcc_parse.c Loading commit data...
vcc_storage.c Loading commit data...
vcc_symb.c Loading commit data...
vcc_token.c Loading commit data...
vcc_utils.c Loading commit data...
vcc_var.c Loading commit data...
vcc_vmod.c Loading commit data...
vcc_xref.c Loading commit data...
vmodtool.py Loading commit data...