Yes, this is another Spring Boot/Angular compression question. This one is different from the others.
I have an Angular project wrapped in a very simple Spring Boot application so it can be served from Tomcat. Like many Angular projects, the vendor.js file is big (12.4mb).
I implemented a simple GZIP Compression filter to apply to the Angular generated js files, and it brought the size down from 12.4mb to 2.2mb. But, the server is a bit overloaded, so we are seeing a performance it (but the server connection is slow, so the time we save downloading the file still outweighs the amount of time required to generate the gzip’d file).
Do I have further options? One idea I had pre-compress the vendor.js file as part of building the WAR. However, I’m not sure how to do that.
If anyone has further ideas, I would appreciate hearing them.