Thanks!

I am also trying to check if certain tags exist in the HTTP header (like 
no-cache, no-store...)

I am doing something like this:

        cache_tag=TSMimeHdrFieldFind(bufp,hdr_loc,TS_HTTP_VALUE_NO_CACHE,-1);

And it doesn't work.
Is this the correct function I should use?




-----Original Message-----
From: Nick Kew [mailto:n...@apache.org] 
Sent: Wednesday, June 13, 2012 6:22 PM
To: dev@trafficserver.apache.org
Subject: Re: select which objects to cache


On 13 Jun 2012, at 15:49, Dror Yardeni wrote:

> Thanks!
> 
> One more thing. Is it possible to read (place in a temporary buffer) the 
> content of the returned object? Or just its first 100 bytes?
> (for example, if the client requested a small video from the server, can I 
> somehow inspect the video itself? What is the API?)

You would use a filter for that.  The null-filter example provides a template
for passing data through, so you'd just want to add code to inspect as much
as you want of it.

-- 
Nick Kew

Reply via email to