You may want to checkout the API TSHttpTxnConfigIntSet that allows
overriding the setting "proxy.config.http.cache.http".

For example:

TSHttpTxnConfigIntSet(txn, TS_CONFIG_HTTP_CACHE_HTTP, 0);




Thanks,

Sudheer


On 10/6/14, 2:51 AM, "Thomas Berger" <th.ber...@it.piratenpartei.de> wrote:

>Hi all, 
>
>for one of our projects, we need to bypass the cache under specific
>conditions.
>
>I found no way right now to set a request to non-cacheable in the plugin
>API 
>documentation. 
>`TSHttpTxnReqCacheableSet` does only force a request to be cachable.
>
>Is there any way to enforce the following:
>
>- 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
>
>
>
>-- 
>Mit freundlichen Grüßen / Kind regards,
>Thomas Berger
>Core Administrator - Bundes IT
>
>E-Mail: th.ber...@it.piratenpartei.de
>Jabber: t...@jabber.piratenpartei.de
>
>Piratenpartei Deutschland ­ Pirate Party of Germany Pflugstraße 9a,
>D-10115 
>Berlin, Germany
>
>Stefan Körner (Vorsitzender), Carsten Sawosch (Stellvertretender
>Vorsitzender),
>Stefan Bartels (Schatzmeister), Stepanie Schmidke (Generalsekretärin),
>Kristos Thingilouthis (Politischer Geschäftsführer),
>Lothar Krauß (Stellvertretender Schatzmeister), Mark Huger
>(Stellvertretender
>Generalsekretär),
>Bernd Schreiner (Stellvertretender politischer Geschäftsführer)
>

Reply via email to