Hi, @Peter5. Please believe me when I tell you that your assumptions are false. Please stop trying to prove that you are correct and instead please try to understand what I am writing because what I wrote is both correct and true.
I’m going to highlight the false assumptions inline below:
I understand the CDN has detected a file with the same hash.
The CDN is not involved. Only the deploy API endpoint is involved. This statement above is simply wrong. The deploy API detected a file with the same hash in a previous deploy of this same site.
The reason for this is because I uploaded it to a different site (I believe it is hilarious-hamster-e7ddea - but it could be a different test staging site).
That is incorrect. It was uploaded to this same site, not a different site.
This in itself would be fine, however there is something in the CDN logic that sees there’s an identical file (read permissions ok), but it cannot access (write permissions not ok?) it (remember this file is in a different Netlify site), so it does not request it in the CLI request, but it doesn’t update it either.
This is both unproven and untrue. Again, the CDN has nothing to do with this and even when the files are not uploaded they do update. They do change to the checksum version the CLI sent to the deploy API using the copy from a previous deploy of this same site.
Imagine I make a new site with three files with three checksums below (and clearly all the checksum are not real or valid - they are simplified checksums for clarity only):
- one.html with checksum 11111
- two.html with checksum 22222
- three.html with checksum 33334
The CLI will shown:
√ CDN requesting 3 files
√ Finished uploading 3 assets
Then I make a new deploy with new checksums:
- one.html with checksum 44444
- two.html with checksum 55555
- three.html with checksum 66666
Again, the CLI will show:
√ CDN requesting 3 files
√ Finished uploading 3 assets
Now, lets say the file one.html is reverted like so:
- one.html with checksum 11111
- two.html with checksum 55555
- three.html with checksum 66666
At this point the CLI will show:
√ CDN requesting 0 files
√ Finished uploading 0 assets
However, the file one.html is still changed from the checksum 44444 version back to the 11111 version. The fact that no files were uploaded does not mean no files changed. It only means that no new files were uploaded. I think this is where you assume Netlify is making a mistake but this is not reality. The files do change, they just do not get uploaded a second time.
If you download the deploy where it says “CDN requesting 0 files”, you will see that the checksum for one.html did change back to 11111. The CLI just did not upload it because the API already has a copy in the first deploy and the checksum is how that is determined. The deploy does change even when “CDN requesting 0 files” is written (unless you are actually deploying only the same files from your last deploy and then the two deploys will be identical because nothing changed between the two deploys).
If you want to prove you are correct, then prove that none of the files in deploy 66f5777021528c1a0fe3087b
exists in any previous deploys of this site. I can prove they do exist in previous deploys as shown below in the CSV format output:
file path, SHA-1 checksum, first deploy of this site where is appears, the date that deploy was created
/spinner.gif, edb5fb1c0d84af5233041fbe52b797964e403076, 66963d92a7f8eb6b895bac9e, 2024-07-16 09:29:54 UTC
/phishing_1280.png, 5d192f0688481979aa67bfd5ccaf216650da9ca0, 66963d92a7f8eb6b895bac9e, 2024-07-16 09:29:54 UTC
/marker-shadow.png, 7b6a8df63930381e96604e705168d0527d6b82bc, 66963d92a7f8eb6b895bac9e, 2024-07-16 09:29:54 UTC
/marker-icon.png, 60a90bcbb2b42b7ddb4556db94eb7c1084b0e5da, 66963d92a7f8eb6b895bac9e, 2024-07-16 09:29:54 UTC
/marker-icon-2x.png, cf3a536596b1f58e0ac805404183c8e6d6bdacb5, 66963d92a7f8eb6b895bac9e, 2024-07-16 09:29:54 UTC
/layers.png, c9e7528e491a39232ba24a2706c6c739d6fb0f06, 66963d92a7f8eb6b895bac9e, 2024-07-16 09:29:54 UTC
/layers-2x.png, 152a162333e46d24f9d89f566312fc0c64011dee, 66963d92a7f8eb6b895bac9e, 2024-07-16 09:29:54 UTC
/index.html, dd38c28cf9ee0a950e370f21cee77e7f1364e121, 66f571a28e8a4d1637a70642, 2024-09-26 14:37:22 UTC
/hacker_1280.png, a18d50e8b4f85db6694f966d296a5794067fdf4e, 66963d92a7f8eb6b895bac9e, 2024-07-16 09:29:54 UTC
/getitongoogleplay.png, 56a252bd7b83560d2fb1c99fab21d21100751d42, 66963d92a7f8eb6b895bac9e, 2024-07-16 09:29:54 UTC
/downloadontheappstore.png, 922503a9fb4f5fe1c532968c2888a3a9fa52da02, 66963d92a7f8eb6b895bac9e, 2024-07-16 09:29:54 UTC
/crosshair-white.png, d06577c680c6779e4ecb8e83a80ba0b917b2317f, 66963d92a7f8eb6b895bac9e, 2024-07-16 09:29:54 UTC
/crosshair-grey.png, 05c0573120674b6aa9a465565da465ed810ce9aa, 66963d92a7f8eb6b895bac9e, 2024-07-16 09:29:54 UTC
/color_balls_1920.jpg, d32e18f89752c30cc3262d2f5b626854031309ed, 66963d92a7f8eb6b895bac9e, 2024-07-16 09:29:54 UTC
/branding.png, dc5a282091fb68247b6193829114453910c297a0, 66f013cf3e2f929b23948e11, 2024-09-22 12:55:43 UTC
/branding-socprime.png, 3764905c773b96275bba3c21f85c4272ab7a67e5, 66963d92a7f8eb6b895bac9e, 2024-07-16 09:29:54 UTC
/branding-socautomation.png, ddc04f7ae782656ab402ce95f5755e029ec2058f, 66f013cf3e2f929b23948e11, 2024-09-22 12:55:43 UTC
/branding-soca.png, ddc04f7ae782656ab402ce95f5755e029ec2058f, 66f013cf3e2f929b23948e11, 2024-09-22 12:55:43 UTC
/branding-jt.png, 833f202f46915eaf06041f21fd5b6650463fbd80, 66f013cf3e2f929b23948e11, 2024-09-22 12:55:43 UTC
/assets/x.b78c660b.js, 7ea771c8b248f20530f9b2dd1c230e293fbbd9ad, 66f571a28e8a4d1637a70642, 2024-09-26 14:37:22 UTC
/assets/trash.42fccfe3.js, f90367e9c68ca952ba593c0fda6134b3d4aab505, 66f571a28e8a4d1637a70642, 2024-09-26 14:37:22 UTC
/assets/spinner.89eed656.gif, edb5fb1c0d84af5233041fbe52b797964e403076, 66963d92a7f8eb6b895bac9e, 2024-07-16 09:29:54 UTC
/assets/quadtree.661b8644.js, 90c8fb79be6d7aa7f7608c71a8b83589a168f8c9, 66dacd9aaa07a944b46f10b0, 2024-09-06 09:38:34 UTC
/assets/plus.3a5ba7be.js, ce51a8ef10562d8732a21d3719b1c508f28605ac, 66f571a28e8a4d1637a70642, 2024-09-26 14:37:22 UTC
/assets/index.e1fa6b4b.js, 51adb5c8500608dcd7cab9a04a0e68212667221b, 66f571a28e8a4d1637a70642, 2024-09-26 14:37:22 UTC
/assets/index.394a7a61.css, 8a0200eef153e09f35802b0eb9ddf0dde36fed21, 66f533692aa0b9bcfa8270b4, 2024-09-26 10:11:53 UTC
/assets/hooks.fba3be11.js, 5b4447202fc8f4115022f13a73564410f58309c5, 66f571a28e8a4d1637a70642, 2024-09-26 14:37:22 UTC
/assets/highcharts.97d0cc0d.js, 6f7af865842e4bf5ac54305506ab9bbfc097ccd2, 66f571a28e8a4d1637a70642, 2024-09-26 14:37:22 UTC
/assets/highcharts-react.min.c2425c95.js, 9feda6dccc0c890e05cfc2ddcafa282e3febc1cc, 66f571a28e8a4d1637a70642, 2024-09-26 14:37:22 UTC
/assets/favicon.f2836030.ico, 11b53a7f0a842f845d53304aae05b4827cce7c1e, 66963d92a7f8eb6b895bac9e, 2024-07-16 09:29:54 UTC
/assets/check2.0b6ce584.js, bdfe98398cc1527442b855c2368ac5191aad36e8, 66f571a28e8a4d1637a70642, 2024-09-26 14:37:22 UTC
/assets/tilelayer.d94d6f55.js, a6f8087f4484354fff0cd9da43fabaece7750f01, 66f571a28e8a4d1637a70642, 2024-09-26 14:37:22 UTC
/assets/reportmanagerstub.63c126c7.js, 6a096384d1cfc73dc169703891f55f78ecd55cd7, 66f571a28e8a4d1637a70642, 2024-09-26 14:37:22 UTC
/assets/rbvmworkflowmanagerstub.254ec140.js, 1c76d2983badc26501ff5b8c6dee2648837fb5bd, 66f571a28e8a4d1637a70642, 2024-09-26 14:37:22 UTC
/assets/rbvmstakeholdermanagerstub.1e6a71dc.js, f455dca0028a2b28ef7b3050082901cec84b4a6a, 66f571a28e8a4d1637a70642, 2024-09-26 14:37:22 UTC
/assets/rbvmriskmapmanagerstub.2fac34ea.js, 793254899fd03dbc6ab3f884270076361b4b900a, 66f571a28e8a4d1637a70642, 2024-09-26 14:37:22 UTC
/assets/rbvmdashboardstub.6dad74ef.js, 3067d9c7dbdd5a9dd5cd2810c33f846f62c7ec23, 66f571a28e8a4d1637a70642, 2024-09-26 14:37:22 UTC
/assets/rbvmcaasmstub.1167704f.js, da74e87dafedab0eadc67773d60f1c00ccd800a1, 66f571a28e8a4d1637a70642, 2024-09-26 14:37:22 UTC
/assets/datahelixcontrolstub.a5182115.js, f77b813d6a9463d8900edec10526958df8093000, 66f571a28e8a4d1637a70642, 2024-09-26 14:37:22 UTC
/assets/datahelixanalysisstub.3e340093.js, 6fa09bdc4f8648ff5abbe57cf9bfa146546ee092, 66f571a28e8a4d1637a70642, 2024-09-26 14:37:22 UTC
/assets/casemgtstub.eab18853.js, ee82b3c89b2fc14905f9c905e2fdcf4c4bde43af, 66f571a28e8a4d1637a70642, 2024-09-26 14:37:22 UTC
/assets/adminsettingsstub.8ff585c4.js, 6a2e337fde2261df53d694ea607e7c80f6cab49a, 66f571a28e8a4d1637a70642, 2024-09-26 14:37:22 UTC
/assets/adminsettingsstub.4bb41442.css, d79c5260cc81fe380d7fcd7a7192c1e8835ad199, 66963d92a7f8eb6b895bac9e, 2024-07-16 09:29:54 UTC
/runtime.js, f6b175d14ae19f8ec889351d85aee87b63bcf517, 66f554c136be3e1c3241d4fb, 2024-09-26 12:34:09 UTC
/datahelixai-white.png, dc5a282091fb68247b6193829114453910c297a0, 66f013cf3e2f929b23948e11, 2024-09-22 12:55:43 UTC
/netlify.toml, c574d229b542e1ab5a54f7e13d7ef48ac76d16de, 66a8a7affdcd5413989bfd8c, 2024-07-30 08:43:27 UTC
As you can see, every single file exists in a previous deploy of this same site (not some other site). This proves that what I told you it true. If you can disprove this somehow, please show the proof here. If you have questions, I will be happy to answer.