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?)
Thanks in advance, Dror -----Original Message----- From: Leif Hedstrom [mailto:zw...@apache.org] Sent: Thursday, June 07, 2012 5:54 PM To: dev@trafficserver.apache.org Cc: dev@trafficserver.apache.org Subject: Re: select which objects to cache On Jun 7, 2012, at 7:34 AM, Dror Yardeni <dror.yard...@mobixell.com> wrote: > > I am guessing that there is an internal mechanism in traffic server that > prevent the caching of html headers that contains the "no-cache" tag. But I > have no idea how to use it... > (one colleague of mine suggested to add "no-cache" tag to such html headers > if needed, and then capture the SEND_RESPONSE_HDR event of that transaction > and remove the "no-cache" tag... can this be done?) > > Can you please give me a hint regarding the way to proceed? Almost. In the read response hdr hook, you can add the no-cache. Or, probably, simple turn off he http.cache via the overridable configs API (I haven't tested doing that this late in the transaction, but try it). Either solution are too late in the send response state. -- leif > > Help would be greatly appreciated :) > > Thanks, > Dror Yardeni >