Compressing content from HTTP server
Use the Apache module mod_deflate
to compress the content that is served by the HTTP Server.
Static content
To apply the configuration for Cúram static content, configure the following settings in the httpd.conf
file on the HTTP server.
This example assumes that you are using the relative URL /CuramStatic/
.
<LocationMatch /(Curam|CuramStatic)>AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript# Netscape 4.x has some problems...BrowserMatch ^Mozilla/4 gzip-only-text/html# Netscape 4.06-4.08 have some more problemsBrowserMatch ^Mozilla/4\.0[678] no-gzip# MSIE masquerades as Netscape, but it is fineBrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
Web applications
To apply the configuration for web applications, such as the Universal Access Responsive Web Application,
configure the following settings in the httpd.conf
file on the HTTP server.
This example assumes that you are using the relative URL /universal
for your Universal Access Responsive
Web Application application, and that the Cúram REST APIs are being served from /Rest
.
# List of MIME types that can be compressed provided with the out-of-the-box application# some of them might be already configured in your HTTP server, please edit as required<IfModule mime_module>AddType image/x-icon .icoAddType application/javascript .jsAddType application/json jsonAddType image/svg+xml svgAddType text/css cssAddType text/html html