문제

I'm trying to provision a client-side swing application using OBR and Felix. It works, but even after pruning many unused bundles, the obr.xml file is still about 1MB.

That file will be downloaded many times, even though it's not that dynamic.

If I could gzip that file, it compresses with a factor >20, less than 50kb remains.

Can Nexus do that for me? Could I use something like:

https://nexus.dexels.com/nexus/content/groups/obr/.meta/obr.gz

instead of:

https://nexus.dexels.com/nexus/content/groups/obr/.meta/obr.xml

I can't find anything about this, and it would make a lot of sense, I think.

I'm using nexus-obr-plugin-2.0.1-SNAPSHOT

도움이 되었습니까?

해결책

You can enable gzip compression for responses by adding the following line to ${nexus_root}/conf/nexus.properties:

enable-restlet-encoder=true

If the felix client sends the "Accept-Encoding: gzip, deflate" header then the response will be compressed.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top