I do:
curl -IXGET -H "Cache-Control: only-if-cached" "http://myurlhere";

The -IXGET makes it do a GET, but, drops the body. The Cache-Control:
only-if-cached request header will have ATS respond with a 200 if the
object is in cache, otherwise you get a 504 if not in cache.

miles


On Wed, Mar 27, 2019 at 11:49 AM Jason Yang <[email protected]> wrote:
>
> Hi community,
>     Is there anyway to check whether a request will be a hit or miss without 
> having trafficserver serving any content and not going to origin? (I think I 
> can do HEAD, but it goes to origin). Thank you!
>
>
> Best,
> Jason

Reply via email to