threerings / getdown

Download, Install, Update

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add file hash as request parameter or header to the download URL

reda-alaoui opened this issue · comments

Hi,

In order to be able to cache the java files on our reverse proxy, we would like to use the cache-control header. The easiest way to do it, is to have an url that contains the hash of the downloaded file in order to cache it infinitely.

The hash can be easily extracted from digest.txt and added to the download url as a parameter.

What do you think of that?

A second option would be to pass the hash in a request header.