My site is porter.netlify.app and I am using it with a custom domain, cdn.porter.sh. I have binaries and xml file stored in Azure Blob Storage that I am proxying through Netlify.
Here are a few sample curl requests
$ curl -I https://cdn.porter.sh/canary/porter-darwin-amd64
HTTP/2 200
accept-ranges: bytes
cache-control: max-age=300
content-disposition:
content-length: 52551088
content-md5: k+WV/r+uzTJ15le20GZvhA==
content-type: application/octet-stream
date: Tue, 16 Feb 2021 23:44:15 GMT
etag: "0x8D8D2D4C20B5048"
last-modified: Tue, 16 Feb 2021 23:44:10 GMT
server: Netlify
x-ms-blob-type: BlockBlob
x-ms-lease-state: available
x-ms-lease-status: unlocked
x-ms-request-id: d285b1d2-501e-0171-7ebd-04d2df000000
x-ms-version: 2014-02-14
age: 0
x-nf-request-id: 0621b3eb-952c-4f09-a54f-f1aebf9464a2-5637843
$ curl -I https://cdn.porter.sh/atom.xml
HTTP/2 200
accept-ranges: bytes
cache-control: no-cache
content-length: 109946
content-md5: 8Qq2wIYrUEjo/Nqf4osoPA==
content-type: application/xml
date: Tue, 16 Feb 2021 23:40:54 GMT
etag: "0x8D8D2D0C13FD145"
last-modified: Tue, 16 Feb 2021 23:15:31 GMT
server: Netlify
x-ms-blob-type: BlockBlob
x-ms-lease-state: available
x-ms-lease-status: unlocked
x-ms-request-id: 4723e394-b01e-00de-74bd-04b61a000000
x-ms-version: 2014-02-14
age: 0
x-nf-request-id: 0621b3eb-952c-4f09-a54f-f1aebf9464a2-5591467
$ curl -I https://cdn.porter.sh/v0.33.1/porter-darwin-amd64
HTTP/2 200
accept-ranges: bytes
content-length: 52551088
content-md5: U6bBwjXDFx8LwJ+m8QjsMw==
content-type: application/octet-stream
date: Tue, 16 Feb 2021 23:41:35 GMT
etag: "0x8D8D2C51AE9C660"
last-modified: Tue, 16 Feb 2021 21:52:07 GMT
server: Netlify
x-ms-blob-type: BlockBlob
x-ms-lease-state: available
x-ms-lease-status: unlocked
x-ms-request-id: 48c3cb3c-c01e-0174-70bd-0426a0000000
x-ms-version: 2014-02-14
age: 1
x-nf-request-id: 28990145-8909-46f4-a392-6941bbee5438-4749347
I am seeing very slow downloads for not so large files (19s for 50MB) and am hoping you can help either spot my config problem or tell me that I shouldn’t use Netlify for this. Here’s an example:
$ time curl -O https://cdn.porter.sh/canary/porter-darwin-amd64
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 50.1M 100 50.1M 0 0 2812k 0 0:00:18 0:00:18 --:--:-- 2817k
real 0m18.255s
user 0m0.134s
sys 0m0.267s
~$ time curl -O https://deislabs.blob.core.windows.net/porter/canary/porter-darwin-amd64
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 50.1M 100 50.1M 0 0 17.6M 0 0:00:02 0:00:02 --:--:-- 17.6M
real 0m2.872s
user 0m0.088s
sys 0m0.200s
I’ve noticed that even for files with max-age set that the age returned in the headers is always 0/1. I’m not sure if that’s normal or if it indicates that my files aren’t making it into the Netlify CDN cache?
Thanks for your help!