Optimizing HTML5 forms optimizing-html-forms

HTML5 forms renders forms in the HTML5 format. The resultant output could be large depending on factors like the form size and images in the form. To optimize the data transfer, the recommended approach is to compress the HTML response using the Web Server from which the request is being served. This approach reduces the response size, network traffic, and the time required to stream data between the server and client machines.

This article describes the steps required to enable compression for the Apache Web Server 2.0 32 bit, with JBoss.

NOTE
The following instructions do not apply to server other than the Apache Web Server 2.0 32 bit.

Obtain the Apache web server software applicable to your operating system:

  • For Windows, download the Apache web server from the Apache HTTP Server Project site.
  • For Solaris 64 bit, download the Apache web server from the Sunfreeware for Solaris Website.
  • For Linux, the Apache web server is preinstalled on a Linux system.

Apache can communicate with JBoss using HTTP or the AJP protocol.

  1. Uncomment the following module configurations in the APACHE_HOME/conf/httpd.conf file.

    code language-java
    LoadModule proxy_balancer_module modules/mod_proxy.so
    LoadModule proxy_balancer_module modules/mod_proxy_http.so
    LoadModule deflate_module modules/mod_deflate.so
    
    note note
    NOTE
    For Linux, the default APACHE_HOME directory is /etc/httpd/.
  2. Configure the proxy on port 8080 of JBoss.

    Add the following configuration to the APACHE_HOME/conf/httpd.conf configuration file.

    code language-java
    ProxyPass / https://<server_Name>:8080/
    ProxyPassReverse / https://<server_Name>:8080/
    
    note note
    NOTE
    When you use a proxy, the following configuration changes are required:
    • Access: https://<server>:<port>/system/console/configMgr
    • Edit the configuration for Apache Sling Referrer Filter
    • In the Allow Hosts, add the entry for the proxy server
  3. Enable Compression.

    Add the following configuration to the APACHE_HOME/conf/httpd.conf configuration file.

    code language-xml
    <Location /content/xfaforms>
      <IfModule mod_deflate.c>
         SetOutputFilter DEFLATE
         # Don’t compress
         SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
         SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|bz2|sit|rar)$ no-gzip dont-vary
        #Dealing with proxy servers
    
         <IfModule mod_headers.c>
            Header append Vary User-Agent
         </IfModule>
      </IfModule>
    </Location>
    
  4. To access the AEM server, use https://[Apache_server]:80.

recommendation-more-help
19ffd973-7af2-44d0-84b5-d547b0dffee2