]> git.ipfire.org Git - ipfire-2.x.git/commit
ids-functions.pl: Use If-Modified-Since header to reduce file downloads.
authorStefan Schantl <stefan.schantl@ipfire.org>
Thu, 24 Mar 2022 19:51:56 +0000 (20:51 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Thu, 24 Mar 2022 19:51:56 +0000 (20:51 +0100)
commit061391e77601082727e64e40dfa352f89be18ce1
treecde6c3012abe0ef2e76be3d2ddd3c407d9caa852
parentf264adda359ec58846840e60d9743ca522fa4004
ids-functions.pl: Use If-Modified-Since header to reduce file downloads.

When using the "If-Modified-Since" header, the server can be requested
if a modified version of the file can be served.

In case that is true, the file will be sent and stored by the downloader
function. If the file has not been touched since the last time, the
server will respond with the code "304" (Not modified).

This tells us, that the current stored file is the latest one (still up-to-date)
and we safely can skip the download attempt for this provider.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/cfgroot/ids-functions.pl