K2 Forms Data Compression

  • 16 February 2021
  • 0 replies
  • 10 views

Userlevel 5
Badge +20
 

K2 Forms Data Compression

KB001883

PRODUCT
K2 smartforms 4.7
BASED ON
K2 smartforms 4.7
LEGACY/ARCHIVED CONTENT
This article has been archived, and/or refers to legacy products, components or features. The content in this article is offered "as is" and will no longer be updated. Archived content is provided for reference purposes only. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.

 

Issue

K2 uses the built-in compression of Internet Information Services (IIS) and web browsers to compress content over the Internet, allowing quicker and more responsive user interfaces. Both the packet size issued by the K2 smartforms server and the packet size received by the browser should be compressed. If there are notable differences between these two packet sizes, data compression is probably not configured correctly in IIS or on the proxy servers.

 

When you render forms over the Internet, data compression might not be configured correctly on the server or on the proxy servers.  This can cause different packet sizes in the form on the server and the form accessed over the Internet in the browser. 

Data compression is not a K2 issue and requires a server administrator to troubleshoot and properly configure the server.

Enabling data compression company-wide can have side effects on other public websites (particularly for sites using Ajax). You can setup filters on the gateway to check response headers and decide whether to enable compression or not. For reference purposes, see the following resources:

Forefront Threat Management Gateway (TMG)
http://technet.microsoft.com/en-us/library/cc995193.aspx
ISA Server 2006
http://technet.microsoft.com/en-us/library/bb794746.aspx
ISA Server 2004
http://technet.microsoft.com/en-us/library/cc302509.aspx

 

 

 

 

Resolution

To compress data over the internet, enable the data compression settings on the environment.

The debugging example below uses Google Chrome Developer Tools.

Internet Explorer only reports on uncompressed sizes. If a Google Chrome browser is not available, K2 recommends using something like Fiddler or FireFox with FireBug installed.

Check if compression is enabled

  1. Open Google Chrome
  2. Hit the ‘F12’ button on your keyboard to open the Developer Tools or access it from the Menu
  3. Run the form in Google Chrome
  4. Click on the Network tab, then search for the form in the Name column.
  5. Take note of the values in the Size/Content column of the row linked to the form. These values represent the compressed size of the form over the internet and the actual size (when uncompressed) as shown below:

Image

If there is a big difference in the size of the values, compression in the environment is enabled and working as expected.

Verify if compression was used when the client browser rendered the form

  1. Click on the form
  2. Click on the Headers tab
  3. Expand the Response Headers section and look for items as highlighted below:

Image

If an item such as Content-Encoding is visible, compression was used when the client browser rendered the form.

Size and Content values are more or less the same

When both the Size and Content values are the same or almost the same size, the environment potentially has a compression issue, i.e. compression is not working. To verify that no content compression is applied, follow the steps in the Verify if compression was used when the client rendered the form section. The Content-Encoding item will not be listed. This is typically the case when Microsoft Internet Security and Acceleration Server (ISA) is used. ISA does not allow compression. Contact the system administrator for further assistance as this is an environmental issue. 

Image

Image

Another potential cause for content compression not working

Another potential cause for a lack of compressing content could be that the dynamic and static content compression settings are not enabled in Internet Information Services (IIS). Open IIS and click on Compression in the IIS section. Ensure that both the dynamic and static content compression settings are enabled as shown in the image below. Note that the IIS web server role features also need to be installed on the server.

Image

 


0 replies

Be the first to reply!

Reply