Table of Contents

HTTP

The HTTP node contains various HTTP-related settings, e.g. HTTP compression, template compatibility, etc.

HTTP compression

The HTTP compression settings are used to enable and configure http compression on a solution.

Compression

Setting Use Notes
Use HTTP compression Enabling this will activate default HTTP compression, the type of which depends on the Accept-Encoding header. Disable it if you don't need the default compression
Minify HTML Removes spaces and line breaks in markup
Remove empty lines in the HTML Removes lines with only whitespace characters

Proxy and load balancing

The Proxy and load balancing section is used to enable and configure forwarded headers. ProxyLoadBalancing

To use these settings:

  1. Check Enable forwarded headers
  2. Add a list of known proxies which are allowed to send forwarded headers
  3. If relevant, customize the forwarded header name
  4. If relevant, specify the number og trusted proxies
  5. If you have multiple proxies, and want to enforce header consistency for better security, check Require header symmetry

One use case for using these settings is to make sure statistics work on solutions behind proxies or in a load balancing setup.

Response cache

ResponseCache

Output settings

The output settings are used to tweak html output:

Output

Setting Use Notes
Do not add base href to header Will leave out base href meta tag from auto generated metatags
Disable port number in base href and Cart redirects Will leave out port number in URLs. Used for reverse proxy setups
Disable performance comment Will leave out the html comment with performance info in the end of the response

Template compatibility

The template compatibility settings can be used during the process of upgrading from a DW9 to a DW10 solution. Please note that enabling these comes with quite a performance hit, so we strongly advise you only to use these settings for debugging and to identify template issues which must be fixed as a part of the upgrade process.

TemplateCompatibility

Setting Use Notes
Convert detected DW9 templates to DW10 runtime Converts @helpers to functions Replaces calls to @System.Web. Enabling this will make the template engine discover old templates and convert helpers and system.web calls For debugging purposes only
Save detected DW9 templates converted to DW10 Enabling this will save converted templates to templates folder as {filename}.dw10.cshtml For debugging purposes only
Load DW10 version of templates if detected Enabling this will load templates named *.dw10.cshtml instead of specified template For debugging purposes only
Overwrite detected DW9 with DW10 conversion Enabling this will overwrite original templates with the converted template and backup original as {filename}.dw9.cshtml For debugging purposes only
To top