Get the file from the cache and/or online, depending on availability and age.
Downloaded form url, headers can be used for example for authentication.
The files are returned as stream. First the cached file if available, when the
cached file is too old the newly downloaded file is returned afterwards.
Get the file from the cache and/or online, depending on availability and age.
Downloaded form url, headers can be used for example for authentication.
The files are returned as stream. First the cached file if available, when the
cached file is too old the newly downloaded file is returned afterwards.
Get the file from the cache and/or online, depending on availability and age.
Downloaded form url, headers can be used for example for authentication.
When a file is cached and up to date it is return directly, when the cached
file is too old the file is downloaded and returned after download.
When a cached file is not available the newly downloaded file is returned.
Put a file in the cache. It is recommended to specify the eTag and the
maxAge. When maxAge is passed and the eTag is not set the file will
always be downloaded again. The fileExtension should be without a dot,
for example "jpg". When cache info is available for the url that path
is re-used.
The returned File is saved on disk.
Put a byte stream in the cache. When using an existing file you can use
file.openRead(). It is recommended to specify the eTag and the
maxAge. When maxAge is passed and the eTag is not set the file will
always be downloaded again. The fileExtension should be without a dot,
for example "jpg". When cache info is available for the url that path
is re-used.
The returned File is saved on disk.