January 28, 2015
Sorry, typed those by hand rather than cut/paste.  Pluralize each:

http://downloads.dlang.org/pre-releases/
http://downloads.dlang.org/releases/

On 1/28/2015 5:01 AM, Mathias LANG via Digitalmars-d wrote:
> On Wednesday, 28 January 2015 at 02:41:19 UTC, Brad Roberts wrote:
>>
>> I spent the time today to read up on how to use s3 website redirects,
>> since s3 doesn't support symlinks.  The only new requirement is for
>> the http client to follow a 301 redirect, which most do.
>>
>> The new directories:
>> http://downloads.dlang.org/pre-release/<majorversion>.x/<version>/...
>> http://downloads.dlang.org/release/<majorversion>.x/<version>/...
>>
>> All beta and release candidates are grouped by the to-be-released
>> version number under the pre-release tree. Having most of the early
>> versions in a versioned directory is a little silly due to there only
>> being a single .zip file in each, but helps with consistency.
>>
>> The existing yearly directories still exist and contain the actual
>> files still to avoid any chance of breaking old clients that don't
>> support redirect following.
>>
>> I hope that makes you guys a little happier..
>>
>> Later,
>> Brad
>
> Wow thanks ! However, I'm not able to access it ATM. It looks like
> something is redirecting me to index.html while trying to access
> http://downloads.dlang.org/pre-release/:
>
> 404 Not Found
>
> Code: NoSuchKey
> Message: The specified key does not exist.
> Key: pre-release/index.html
> RequestId: 2CF3A7AD710363C6
> HostId: pgDzD8nhkGLWj7iRkwLiBs+uGdzX+Mt6Hubbxt4HaO5tSTS+Kd62DaFV/NBjSjMo
>
> Chrome  40.0.2214.93 m
January 28, 2015
On 1/28/15 11:04 AM, Brad Roberts via Digitalmars-d wrote:
> Sorry, typed those by hand rather than cut/paste.  Pluralize each:
>
> http://downloads.dlang.org/pre-releases/
> http://downloads.dlang.org/releases/

BTW how do I distinguish automated (e.g. Travis-CI) downloads from regular downloads? Thanks! -- Andrei

January 29, 2015
On 2015-01-28 20:04, Brad Roberts via Digitalmars-d wrote:
> Sorry, typed those by hand rather than cut/paste.  Pluralize each:
>
> http://downloads.dlang.org/pre-releases/
> http://downloads.dlang.org/releases/

Awesome, thanks.

-- 
/Jacob Carlborg
January 29, 2015
On Wednesday, 28 January 2015 at 19:06:23 UTC, Andrei Alexandrescu wrote:
> On 1/28/15 11:04 AM, Brad Roberts via Digitalmars-d wrote:
>> Sorry, typed those by hand rather than cut/paste.  Pluralize each:
>>
>> http://downloads.dlang.org/pre-releases/
>> http://downloads.dlang.org/releases/
>
> BTW how do I distinguish automated (e.g. Travis-CI) downloads from regular downloads? Thanks! -- Andrei

On way could be to measure (unique) visits to http://dlang.org/download.html. Assuming regular downloads are people on the internet getting D manually.

For more accurate numbers you might want to measure clicks on download links on dlang.org/download.html. This would need to be done with client side javascript.
January 29, 2015
On Wednesday, 28 January 2015 at 19:06:23 UTC, Andrei Alexandrescu wrote:
> On 1/28/15 11:04 AM, Brad Roberts via Digitalmars-d wrote:
>> Sorry, typed those by hand rather than cut/paste.  Pluralize each:
>>
>> http://downloads.dlang.org/pre-releases/
>> http://downloads.dlang.org/releases/
>
> BTW how do I distinguish automated (e.g. Travis-CI) downloads from regular downloads? Thanks! -- Andrei

Travis set the User agent this way:
$ CURL_USER_AGENT="Travis-CI $(curl --version | head -n 1)"
January 29, 2015
On 1/29/15 5:14 AM, Mathias LANG wrote:
> On Wednesday, 28 January 2015 at 19:06:23 UTC, Andrei Alexandrescu wrote:
>> On 1/28/15 11:04 AM, Brad Roberts via Digitalmars-d wrote:
>>> Sorry, typed those by hand rather than cut/paste.  Pluralize each:
>>>
>>> http://downloads.dlang.org/pre-releases/
>>> http://downloads.dlang.org/releases/
>>
>> BTW how do I distinguish automated (e.g. Travis-CI) downloads from
>> regular downloads? Thanks! -- Andrei
>
> Travis set the User agent this way:
> $ CURL_USER_AGENT="Travis-CI $(curl --version | head -n 1)"

Thanks! -- Andrei
January 29, 2015
On 2015-01-29 13:46, "Ulrich =?UTF-8?B?S8O8dHRsZXIi?= <kuettler@gmail.com>" wrote:

> On way could be to measure (unique) visits to
> http://dlang.org/download.html. Assuming regular downloads are people on
> the internet getting D manually.
>
> For more accurate numbers you might want to measure clicks on download
> links on dlang.org/download.html. This would need to be done with client
> side javascript.

There are other tools and installers that will fetch DMD. Like DVM, for example, which at lest some people use to install DMD. It fetches DMD from the DigitalMars FTP.

-- 
/Jacob Carlborg
January 30, 2015
On 01/28/2015 03:41 AM, Brad Roberts via Digitalmars-d wrote:
> I hope that makes you guys a little happier..

Thanks a lot, hope it's easy for you to maintain the redirects.

Would it also be possible to add a LATEST version?
http://downloads.dlang.org/releases/2.x/LATEST/dmd.LATEST.linux.zip
January 30, 2015
On 01/29/2015 03:58 PM, Andrei Alexandrescu wrote:
>>
>> Travis set the User agent this way:
>> $ CURL_USER_AGENT="Travis-CI $(curl --version | head -n 1)"
>
> Thanks! -- Andrei

Yes, I added that so you can keep track of the download numbers.
I'd be interested to know the travis-ci numbers, would also help to argue for download caching on travis-ci side.
January 30, 2015
On 01/28/2015 03:41 AM, Brad Roberts via Digitalmars-d wrote:
>>
>
> I spent the time today to read up on how to use s3 website redirects,
> since s3 doesn't support symlinks.  The only new requirement is for the
> http client to follow a 301 redirect, which most do.

Can you please also add cache-control headers?
Should be 'Cache-Control: public, max-age=31557600'

http://stackoverflow.com/questions/22501465/how-to-add-cache-control-in-aws-s3
http://forum.dlang.org/post/swifmqthxwiouxkwqxlv@forum.dlang.org