Optimizing Mobile Forms

LiveCycle ES4 Mobile 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.

    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:

    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.

    ProxyPass / http://<server_Name>:8080/
    ProxyPassReverse / http://<server_Name>:8080/
  3. Enable Compression.

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

    <Location /lc/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 LiveCycle server, use http://<machineName>:80.

    Note:

    machineName is the name of the server on which the Apache server is running.

 Adobe

Get help faster and easier

New user?