@Tom-Elliott The server-side cache is working perfectly now.
I have successfully cached five packages with 20 installers, totaling approximately 1.1 GB.
However, I encountered another issue during client-side testing.
Test environment:
FOG Server: 1.6.1.376 (dev)
FOG Agent: 0.1.39
WinGet: 1.29.380
All three assigned packages with caching enabled (7-Zip, Firefox ESR and VLC) fail with exit code 2316632068 (0x8A150004), while uncached packages update successfully.
Enabling LocalManifestFiles and restarting the agent did not resolve the issue.
I investigated the cached 7-Zip manifest and found:
ManifestType: merged
ManifestVersion: 1.28.0
I copied the original cached manifest to the Windows client and validated it independently of the FOG Agent:
winget validate --manifest “C:\Temp\7zip-test.yaml”
Result:
Manifest Error: Field value is not supported.
[ManifestType] Value: merged
I then changed the manifest type to singleton in a local test copy. This resulted in another validation error:
Error context: <root>[Installers]
Description: Array should contain no more than 1 elements.
The 7-Zip manifest contains six installer variants.
Looking at SoftwareCache.php, the rewriteManifest() function replaces the installer URLs but preserves the original manifest type and structure.
It appears that the merged CDN manifest may need to be converted into a supported local manifest format, possibly a multi-file manifest to preserve WinGet’s automatic installer selection.
The HTTP cache is accessible from the client, but I have not observed any installer downloads during the failed attempts.