On Mon 9 Dec 2019, 6:51 p.m. Willian Rampazzo, <wramp...@redhat.com> wrote:
> On Mon, Dec 9, 2019 at 3:44 PM Amador Pahim <ama...@pahim.org> wrote: > > > > Hi Willian, > > > > On Mon, Dec 9, 2019 at 6:08 PM Willian Rampazzo <wramp...@redhat.com> > wrote: > > > > > > Greetings, > > > > > > I was looking at the Asset class and could not think about a practical > > > use of the `expire` argument. Does anyone have an example to make it > > > clear for me? > > > > The use-case that led to its implementation was the download of a > > github repository as zip. E.g. > > https://github.com/avocado-framework/avocado/archive/master.zip. > > Users wanted to somehow control how frequently they would download > > again from master. > > Okay, I got it. In this case, there is no reason to use the asset_hash > argument as it may change every time the `master.zip` file in the > example is recreated due to repository changes. > Right. Files that change the content while keeping the name is the use case for optional hash check. > > > > Hope that's helpful. > > > > Thank you for the quick response! > > > Best, > > -- > > apahim > > > > > > > > Thanks in advance, > > > > > > Willian > > > > > > > > > >