[FFmpeg-devel] [PATCH] http: make caching of redirect url optional

Hendrik Leppkes h.leppkes at gmail.com
Sun Nov 7 19:19:49 EET 2021


On Sun, Nov 7, 2021 at 3:33 PM Marton Balint <cus at passwd.hu> wrote:
>
>
>
> On Tue, 2 Nov 2021, Eran Kornblau wrote:
>
> > Hi all,
> >
> > The attached patch makes the default behavior of caching HTTP redirects optional.
>
> Is caching a redirected URL allowed per the HTTP spec? If not, then no
> caching should take place, or the caching should be optional, and not the
> default.
>
> Thanks,
> Marton

A 302 redirect can be cached, but it should respect caching headers in
the response. If we don't do that to timeout the cache, we probably
shouldn't be caching them, especially when some tasks can refer to
hours-old information.

- Hendrik


More information about the ffmpeg-devel mailing list