Support » Plugin: Proxy Cache Purge » max-age or beresp.ttl

  • Resolved Robert1112

    (@robert1112)


    Dear Epstein,

    I have override Varnish TTL shown below and purge works manually or when posts/ pages are updated. How do max-age and beresp.ttl differentiate?

    Any advices to check is appreciated very much. Thank you.

    <Varnish VCL>
    ### Overall TTL
    ### Note: The TTL is designed to be somewhat aggressive here, to keep things in cache.
    # how long you cache objects
    if (beresp.ttl > 0s) {
    unset beresp.http.expires;
    set beresp.http.cache-control = “max-age=900”;
    set beresp.ttl = 24h; # how long you cache objects
    }

    <HEADER>
    cache-control: max-age=900
    x-varnish: 393276 295205
    age: 1650
    via: 1.1 varnish (Varnish/6.0)
    x-cache: Hit
    x-cache-hits: 26

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘max-age or beresp.ttl’ is closed to new replies.