Fortinet Document Library

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:


Table of Contents

Administration Guide

Acceleration

Acceleration provides a technology solution to speed up web application response and optimize web pages and resources in real time.

As a module on FortiWeb device, Acceleration is simple to deploy and does not require any integration into Web application servers or any client installation on end-user devices. With this feature, you can select the approach(es) to make your web site faster and more user-friendly.

An Acceleration policy specifies the option(s) for optimizing the delivery of web applications. To take full advantage of the benefits that Acceleration offers, you must first create your own Acceleration policy, and then select the policy in Policy > Server Policy.

You can also specify certain URLs to be skipped for web application delivery optimization, and add the exception items to the acceleration policy.

FortiWeb offers options for optimizing the delivery of the following web content:

  • HTML
  • JavaScript
  • CSS

Acceleration is available in Reverse Proxy, True Transparent Proxy, and WCCP operating modes.

tooltip icon

If Acceleration is not enabled in Feature Visibility, you must enable it before you can create an Acceleration policy by going to System > Config > Feature Visibility > Additional Features.

To create an Acceleration exception rule:

  1. Go to Application Delivery > Acceleration.
  2. Select the Acceleration Exception tab.
  3. Click Create New.
  4. For Name, enter a name for the exception rule that can be referenced in an Acceleration policy.
  5. Click OK.
  6. Click Create New.
  7. Configure these settings:

    Host status

    Enable to require that the Host: field of the HTTP request match a protected host names entry in order to match the Acceleration exceptions rule. Also configure Host.

    Host

    Select which protected host names entry (either a web host name or IP address) that the Host: field of the HTTP request must be in to match the Acceleration exceptions rule.
    This option is available only if Host status is enabled.

    Type

    Select whether the URL Pattern field must contain either:

    • Simple String—The field is a string that the request URL must match exactly.
    • Regular Expression—The field is a regular expression that defines a set of matching URLs.

    URL Pattern

    Depending on your selection in Type, enter either:

    • Simple String—Enter a literal URL, such as /folder1/index.htm that the HTTP request must contain in order to match the rule, or use wildcards to match multiple URLs, such as /folder1/* or /folder1/*/index.htm. The URL must begin with a slash ( / ).
    • Regular Expression—A regular expression, such as ^/*.php, matching the URLs to which the rule should apply. The pattern does not require a slash ( / ).

    Do not include the domain name, such as www.example.com, which is configured separately in Host.

    To test a regular expression, click the >> (test) icon. This icon opens the Regular Expression Validator window from which you can fine-tune the expression. For details, see Regular expression syntax and Cookbook regular expressions.

  8. Click OK.
    You can repeat steps above to add more items.

To create an Acceleration policy:

  1. Go to Application Delivery > Acceleration.
  2. Select the Acceleration Policy tab.
  3. Click Create New.
  4. Configure these settings:
    Parameter

    Description

    Acceleration Exceptions

    Select an Acceleration exception rule from the drop-down list. You can click the view icon next to views details bout the rule.

    HTML

    Minification

    Enable to minify js in the script and delete the extra white space and comments to reduce bandwidth utilization.

    Combine Heads

    Enable to combine multiple heads in HTML page to one.

    Move CSS to Head

    Enable to move CSS elements above script tags.
    Note: This ensures that the CSS styes are parsed in the head of the HTML page before any body elements are introduced. In so doing, it can effectively reduce the number of times web browsers have to re-flow HTML documents.

    JavaScript

    Minification

    Enable to minify js in the script and delete the extra white space and comments to reduce bandwidth utilization.

    CSS

    Minification

    Enable to minify js in the script and delete the extra white space and comments to reduce bandwidth utilization.

  5. Click OK.

To add the Acceleration policy to a server policy:

  1. Go to Policy > Server Policy.
  2. Select an existing server policy to which you want to include the Acceleration policy.
  3. Or click Create HTTP Policy to create a new HTTP server policy.
  4. Click Edit.
  5. For Application Delivery > Acceleration, select the Acceleration policy from the drop down list.

    Note: To view details about a selected Acceleration policy, click the view icon next to the drop down list.

  6. Click OK.

Acceleration

Acceleration provides a technology solution to speed up web application response and optimize web pages and resources in real time.

As a module on FortiWeb device, Acceleration is simple to deploy and does not require any integration into Web application servers or any client installation on end-user devices. With this feature, you can select the approach(es) to make your web site faster and more user-friendly.

An Acceleration policy specifies the option(s) for optimizing the delivery of web applications. To take full advantage of the benefits that Acceleration offers, you must first create your own Acceleration policy, and then select the policy in Policy > Server Policy.

You can also specify certain URLs to be skipped for web application delivery optimization, and add the exception items to the acceleration policy.

FortiWeb offers options for optimizing the delivery of the following web content:

  • HTML
  • JavaScript
  • CSS

Acceleration is available in Reverse Proxy, True Transparent Proxy, and WCCP operating modes.

tooltip icon

If Acceleration is not enabled in Feature Visibility, you must enable it before you can create an Acceleration policy by going to System > Config > Feature Visibility > Additional Features.

To create an Acceleration exception rule:

  1. Go to Application Delivery > Acceleration.
  2. Select the Acceleration Exception tab.
  3. Click Create New.
  4. For Name, enter a name for the exception rule that can be referenced in an Acceleration policy.
  5. Click OK.
  6. Click Create New.
  7. Configure these settings:

    Host status

    Enable to require that the Host: field of the HTTP request match a protected host names entry in order to match the Acceleration exceptions rule. Also configure Host.

    Host

    Select which protected host names entry (either a web host name or IP address) that the Host: field of the HTTP request must be in to match the Acceleration exceptions rule.
    This option is available only if Host status is enabled.

    Type

    Select whether the URL Pattern field must contain either:

    • Simple String—The field is a string that the request URL must match exactly.
    • Regular Expression—The field is a regular expression that defines a set of matching URLs.

    URL Pattern

    Depending on your selection in Type, enter either:

    • Simple String—Enter a literal URL, such as /folder1/index.htm that the HTTP request must contain in order to match the rule, or use wildcards to match multiple URLs, such as /folder1/* or /folder1/*/index.htm. The URL must begin with a slash ( / ).
    • Regular Expression—A regular expression, such as ^/*.php, matching the URLs to which the rule should apply. The pattern does not require a slash ( / ).

    Do not include the domain name, such as www.example.com, which is configured separately in Host.

    To test a regular expression, click the >> (test) icon. This icon opens the Regular Expression Validator window from which you can fine-tune the expression. For details, see Regular expression syntax and Cookbook regular expressions.

  8. Click OK.
    You can repeat steps above to add more items.

To create an Acceleration policy:

  1. Go to Application Delivery > Acceleration.
  2. Select the Acceleration Policy tab.
  3. Click Create New.
  4. Configure these settings:
    Parameter

    Description

    Acceleration Exceptions

    Select an Acceleration exception rule from the drop-down list. You can click the view icon next to views details bout the rule.

    HTML

    Minification

    Enable to minify js in the script and delete the extra white space and comments to reduce bandwidth utilization.

    Combine Heads

    Enable to combine multiple heads in HTML page to one.

    Move CSS to Head

    Enable to move CSS elements above script tags.
    Note: This ensures that the CSS styes are parsed in the head of the HTML page before any body elements are introduced. In so doing, it can effectively reduce the number of times web browsers have to re-flow HTML documents.

    JavaScript

    Minification

    Enable to minify js in the script and delete the extra white space and comments to reduce bandwidth utilization.

    CSS

    Minification

    Enable to minify js in the script and delete the extra white space and comments to reduce bandwidth utilization.

  5. Click OK.

To add the Acceleration policy to a server policy:

  1. Go to Policy > Server Policy.
  2. Select an existing server policy to which you want to include the Acceleration policy.
  3. Or click Create HTTP Policy to create a new HTTP server policy.
  4. Click Edit.
  5. For Application Delivery > Acceleration, select the Acceleration policy from the drop down list.

    Note: To view details about a selected Acceleration policy, click the view icon next to the drop down list.

  6. Click OK.