Fortinet 459 FortiWeb 5.0 Patch 6 Administration Guide
3. Click Create New.
A dialog appears.
4. In Name, type a name that can be referenced by other parts of the configuration. Do not use
spaces or special characters. The maximum length is 35 characters.
5. From Exclusion URL, you can select an existing exclusion. (See“Configuring
compression/decompression exemptions” on page 456.)
Optionally, select an exclusion and click the Detail link. The exclusion dialog appears. You
can view and edit the exclusion. Use the browser Back button to return.
6. Click OK.
7. To add or remove a content type, click Add Content Type.
A dialog appears.
8. In the Content Types list, select the content types that you want to compress, then click the
right arrow (->) to move them to the Allow Types list.
For external JavaScripts, content type strings vary. If you are unsure of the content type
string, for maximum coverage, select all JavaScript content type strings. However, due to
wide browser compatibility, despite its current deprecated status, many web servers use
text/javascript.
9. Click OK.
10.To apply the compression policy, select it in an inline protection profile used by a server
policy (see “Configuring a protection profile for inline topologies” on page 468).
Clear all
Delete
These apply compression only to JavaScripts that are external to a web page — that is, not
directly embedded in a <script> tag or inline in the HTML document itself, but instead
included via reference to a JavaScript file, such as <script src="/nav/menu.js">, and
therefore are contained in a separate HTTP response from the HTML document. Likewise,
selecting the text/css content type for compression will only compress external CSS. It will
not compress CSS embedded directly within the HTML file. (Embedded CSS or JavaScript are
governed by Content-Type: text/html instead.)