For evicting the cached version and forcing the request to be sent to origin, he could do like what plugin /plugins/experimental/regex_revalidate/ does, that is, on event TS_EVENT_HTTP_CACHE_LOOKUP_COMPLETE, do TSHttpTxnCacheLookupStatusSet(txn, TS_CACHE_LOOKUP_HIT_STALE);
Acácio Centeno Software Engineering Azion Technologies Porto Alegre, Brasil +55 51 3012 3005 | +55 51 8118 9947 Miami, USA +1 305 704 8816 Quaisquer informações contidas neste e-mail e anexos podem ser confidenciais e privilegiadas, protegidas por sigilo legal. Qualquer forma de utilização deste documento depende de autorização do emissor, sujeito as penalidades cabíveis. Any information in this e-mail and attachments may be confidential and privileged, protected by legal confidentiality. The use of this document require authorization by the issuer, subject to penalties. 2014-10-06 12:52 GMT-03:00 Sudheer Vinukonda <sudhe...@yahoo-inc.com.invalid >: > Hi Alan, > > Thomas¹s requirement has two parts: > > - Requests to URI /a are cached > - If condition x matched, requests to /a must bypass the cache and served > From the origin without putting the response into the cache > > > From what I understand, essentially, the use case is to force certain > client requests to origin (based on some condition), even when the > response is already in cache. > > TSHttpTxnServerRespNoStoreSet() can prevent an object from going into the > cache, but, can it can actually force a client request to the origin? > > > Thanks, > > Sudheer > > > On 10/6/14, 8:17 AM, "Alan M. Carroll" <a...@network-geographics.com> > wrote: > > >Monday, October 6, 2014, 4:51:12 AM, you wrote: > > > >> - Requests to URI /a are cached > >> - If condition x matched, requests to /a must bypass the cache and > >>served from > >> the origin without putting the response into the cache > > > >Look TSHttpTxnServerRespNoStoreSet(). > > > >