>
> If I understand correctly, ATS does NOT support stale while revalidate,
> which is surprising given the RFC was created by a Yahoo-ligan. ;)
>

I'm glad you mentioned this. Actually Yahoo open-sourced the functionality
for stale while revalidate via the stale_response.so plugin for ATS 10:

https://docs.trafficserver.apache.org/en/latest/admin-guide/plugins/stale_response.en.html#stale-response-plugin

On Fri, Apr 19, 2024 at 3:38 PM dave seddon <dave.seddon...@gmail.com>
wrote:

> Depending on your use case, you also want to carefully consider the cache
> control headers for the downloaded object.
>
> If I understand correctly, ATS does NOT support stale while revalidate,
> which is surprising given the RFC was created by a Yahoo-ligan. ;)
>
> On Fri, Apr 19, 2024 at 9:51 AM Leif Hedstrom <zw...@apache.org> wrote:
>
>> We discussed this in the slack channel. Probably the best option for you
>> (other than writing a new plugin) is to use the background_fetch plugin.
>> You will still need to trigger a download, but you can avoid having to wait
>> for the full response in the client. So, what you’d do is
>>
>>      curl -H “Range: bytes=0-1” https://www.example.com/some/url/foo.img
>>
>>
>> And make sure background_fetch is enabled on this remap rule. No matter
>> what you do, you will have to have something that tells ATS to kick off a
>> download, and the above is probably as good as any alternative.
>>
>> Cheers,
>>
>> — Leif
>>
>>
>> On Apr 17, 2024, at 9:33 AM, Pavel Vazharov <pa...@x3me.net> wrote:
>>
>> Hi Brian,
>>
>> Thank you for your response.
>> It'll do the job but, as far as I understand it, an external
>> functionality will need to download the content in order to push it into
>> the ATS.
>> The content that I want to write in the ATS storage is on the Internet.
>>
>> Regards,
>> Pavel.
>>
>> On Wed, Apr 17, 2024 at 6:26 PM Brian Neradt <brian.ner...@gmail.com>
>> wrote:
>>
>>> Hi Pavel,
>>>
>>> This isn't a direct answer to your question, but are you aware of the
>>> ATS HTTP PUSH feature? That allows you to push objects into the ATS cache
>>> without the typical caching of proxied response. Can that help you in this
>>> situation?
>>>
>>>
>>> https://docs.trafficserver.apache.org/en/latest/admin-guide/configuration/cache-basics.en.html#pushing-content-into-the-cache
>>>
>>>
>>> On Wed, Apr 17, 2024 at 8:41 AM Pavel Vazharov <pa...@x3me.net> wrote:
>>>
>>>> Hi there,
>>>>
>>>> Is there a way to use the ATS as an HTTP client to download and store
>>>> given content?
>>>> I'm aware that I can achieve this with a local HTTP client (wget, curl)
>>>> which uses the ATS as a forward proxy and then the ATS will store the
>>>> content (which is the actual goal).
>>>> I was wondering if there is a way without using an additional HTTP
>>>> client so that I can skip the additional content moving between sockets.
>>>>
>>>> Thanks,
>>>> Pavel.
>>>>
>>>
>>>
>>> --
>>> "Come to Me, all who are weary and heavy-laden, and I will
>>> give you rest. Take My yoke upon you and learn from Me, for
>>> I am gentle and humble in heart, and you will find rest for
>>> your souls. For My yoke is easy and My burden is light."
>>>
>>>     ~ Matthew 11:28-30
>>>
>>
>>
>
> --
> Regards,
> Dave Seddon
> +1 415 857 5102
>


-- 
"Come to Me, all who are weary and heavy-laden, and I will
give you rest. Take My yoke upon you and learn from Me, for
I am gentle and humble in heart, and you will find rest for
your souls. For My yoke is easy and My burden is light."

    ~ Matthew 11:28-30

Reply via email to