You can configure Sun Java System Web Server to generate and store pre-compressed versions of files in a specified directory. When configured, and only if an Accept-encoding: gzip header is received, all requests for files from a directory configured to serve pre-compressed content are redirected to requests for an equivalent compressed file from that directory if such a file exists. For example, if the Web server receives a request for myfile.html, and both myfile.html and myfile.html.gz exist, then those requests with an appropriate Accept-encoding header receive the compressed file.
To configure your server to serve pre-compressed content, perform the following steps:
From the virtual server page, click the Content Management tab.
Click General sub tab.
Go to Compression > Precompressed Content section and select from the following options.
Age Checking — Specify whether to check if the compressed version is older than the non-compressed version.
If selected, then the compressed version, even if it is older than the non-compressed version, will not be selected.
If not selected, then the compressed version, even if it is older than the non-compressed version, will always be selected.
If selected, then a Vary: Accept-encoding header is always inserted when a compressed version of a file is selected.
If not selected, then a Vary: Accept-encoding header is never inserted.