Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cbi-dev] caching on download.eclipse.org

Hi Denis,

Thanks for the info. The situation we are in now means that when a project updates their composite* files there is a small window with a small chance that users will get an inconsistent view of the p2 repository. However, does your recommendation mean that after updating the files we can just do a wget -S --header="X-Cache-Bypass: true" and then the files will be consistent in the cache again? If so, that is fairly straightforward for me to add to our CI script that updates those files.

Thanks,
Jonah
~~~
Jonah Graham
Kichwa Coders
www.kichwacoders.com


On Thu, 4 Jul 2019 at 14:27, Denis Roy <denis.roy@xxxxxxxxxxxxxxxxxxxxxx> wrote:

Hi Jonah.

Caching on download.eclipse.org (and archive.eclipse.org) was done under the (apparently incorrect) assumption that content is added but not frequently changed.

I believe files are cached for no more than 10 minutes.

In your CI build, you can use the http header X-Cache-Bypass: true to bypass the front-line cache. The header should also trigger a refresh.

wget -S --header="X-Cache-Bypass: true" https://download.eclipse.org/tools/cdt/releases/9.8/compositeArtifacts.xml


Denis



On 2019-07-03 1:50 p.m., Jonah Graham wrote:
Hi folks,

Is there any documentation on how download.eclipse.org caches compositeArtifacts.xml and compositeContent.xml?

I am having a problem that even though I update both of those files at the same time from my CI job, the servers seem to serve different age versions of those two files[1]. This means that depending on which one updates first means that Eclipse can find an update available, but not be able to install them because artefacts are not available.

From within the browser I can see that at the moment compositeContent.xml returns 200 OK when bypassing cache, and  304 Not Modified when doing a normal load. But as far as I can tell, the file being served is not the file on disk.

Thanks,
Jonah



~~~
Jonah Graham
Kichwa Coders
www.kichwacoders.com

_______________________________________________
cbi-dev mailing list
cbi-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cbi-dev
_______________________________________________
cbi-dev mailing list
cbi-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cbi-dev

Back to the top