문제

Who can tell me how to implement (which action to return from which function) these different scenarios in varnish 3?

  1. Don't look in the cache for this particular request and don't cache the response.

  2. Do lookup the request but don't cache the response when missed.

In both cases the response should not but cached but later requests should be allowed to cache the response for same URL, so you can't use vcl_fetch:hit_for_pass.

도움이 되었습니까?

해결책

1: vcl_recv: return pipe

2: vcl_fetch: obj.ttl = 0

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top