Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
458 views
in Technique[技术] by (71.8m points)

performance - Serve pre-compressed static file through Payara Web Server

I am using Webpack to bundle the static files(CSS/JS) and generating both the .css/.js and .css.gz/.js.gz files. Using these files I am creating a WAR file which I am deploying on the Payara Server.

The server is only serving uncompressed static files and not the pre-compressed static files.

I tried configuring the Payara web server for gzip compression but it is again compressing the static files and not using the already compressed static files. This is putting load on the CPU for every request.

I want to avoid compressing on every request. What configurations are required to make the web-server use the already compressed static files and not waste CPU cycles in again compressing the normal static files?

PS: Found configuration to achieve the same in Apache webserver but unable to achieve the same in Payara webserver

question from:https://stackoverflow.com/questions/65646981/serve-pre-compressed-static-file-through-payara-web-server

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...