10.02.2013 Views

IBM Tivoli Access Manager for e-business: WebSEAL Administration ...

IBM Tivoli Access Manager for e-business: WebSEAL Administration ...

IBM Tivoli Access Manager for e-business: WebSEAL Administration ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

HTTP<br />

data<br />

compression<br />

<strong>WebSEAL</strong><br />

servers<br />

can<br />

be<br />

configured<br />

to<br />

compress<br />

data<br />

that<br />

is<br />

transferred<br />

over<br />

HTTP<br />

between<br />

the<br />

<strong>WebSEAL</strong><br />

server<br />

and<br />

the<br />

client.<br />

<strong>WebSEAL</strong><br />

uses<br />

the<br />

gzip<br />

compression<br />

algorithm<br />

described<br />

in<br />

RFC<br />

1952.<br />

Gzip<br />

is<br />

supported<br />

by<br />

all<br />

major<br />

browsers.<br />

HTTP<br />

compression<br />

in<br />

<strong>WebSEAL</strong><br />

can<br />

be<br />

configured<br />

based<br />

on<br />

MIME-type,<br />

browser<br />

type,<br />

and<br />

protected<br />

object<br />

policies<br />

(POPs).<br />

See<br />

the<br />

following<br />

sections:<br />

v<br />

“Compression<br />

based<br />

on<br />

MIME-type”<br />

v<br />

“Compression<br />

based<br />

on<br />

user<br />

agent<br />

type”<br />

on<br />

page<br />

81<br />

v<br />

“Compression<br />

policy<br />

in<br />

POPs”<br />

on<br />

page<br />

82<br />

v<br />

“Data<br />

compression<br />

limitation”<br />

on<br />

page<br />

82<br />

v<br />

“Data<br />

compression<br />

configuration”<br />

on<br />

page<br />

82<br />

Compression<br />

based<br />

on<br />

MIME-type<br />

You<br />

can<br />

create<br />

an<br />

entry<br />

in<br />

the<br />

<strong>WebSEAL</strong><br />

configuration<br />

file<br />

<strong>for</strong><br />

each<br />

MIME-type<br />

or<br />

group<br />

of<br />

MIME-types<br />

<strong>for</strong><br />

which<br />

data<br />

compression<br />

is<br />

needed.<br />

The<br />

syntax<br />

is:<br />

[compress-mime-types]<br />

mime_type<br />

=<br />

minimum_doc_size[:compression_level]<br />

The<br />

mime-type<br />

can<br />

specify<br />

one<br />

particular<br />

MIME<br />

type<br />

or<br />

can<br />

use<br />

wildcard<br />

characters<br />

to<br />

specify<br />

a<br />

class<br />

of<br />

MIME<br />

types.<br />

Each<br />

mime-type<br />

declaration<br />

is<br />

a<br />

separate<br />

entry<br />

in<br />

the<br />

[compress-mime-types]<br />

stanza.<br />

The<br />

wildcard<br />

character<br />

(*)<br />

is<br />

limited<br />

to<br />

entries<br />

of<br />

one<br />

collection<br />

of<br />

MIME<br />

types.<br />

For<br />

example,<br />

text/*.<br />

Any<br />

MIME-type<br />

not<br />

listed<br />

in<br />

the<br />

stanza<br />

is<br />

not<br />

compressed.<br />

Order<br />

is<br />

important.<br />

The<br />

first<br />

entry<br />

that<br />

matches<br />

a<br />

returned<br />

document<br />

is<br />

used<br />

<strong>for</strong><br />

that<br />

document.<br />

The<br />

minimum_doc_size<br />

value<br />

specifies<br />

policy<br />

regarding<br />

what<br />

size<br />

of<br />

documents<br />

will<br />

be<br />

compressed.<br />

This<br />

value<br />

is<br />

an<br />

integer.<br />

Valid<br />

values<br />

are<br />

shown<br />

in<br />

the<br />

following<br />

list:<br />

v<br />

-1<br />

When<br />

the<br />

minimum<br />

size<br />

is<br />

-1,<br />

documents<br />

of<br />

the<br />

specified<br />

MIME-type<br />

are<br />

never<br />

compressed<br />

v<br />

0<br />

When<br />

the<br />

minimum<br />

size<br />

is<br />

0,<br />

documents<br />

of<br />

the<br />

specified<br />

MIME-type<br />

are<br />

always<br />

compressed<br />

v<br />

Integer<br />

greater<br />

than<br />

zero<br />

When<br />

the<br />

minimum<br />

size<br />

is<br />

greater<br />

than<br />

zero,<br />

documents<br />

of<br />

the<br />

specified<br />

MIME-type<br />

are<br />

compressed<br />

when<br />

the<br />

number<br />

of<br />

bytes<br />

in<br />

the<br />

response<br />

to<br />

<strong>WebSEAL</strong><br />

exceeds<br />

this<br />

integer<br />

value<br />

Any<br />

negative<br />

number<br />

other<br />

than<br />

-1<br />

generates<br />

an<br />

error<br />

message.<br />

When<br />

<strong>WebSEAL</strong><br />

receives<br />

a<br />

request<br />

from<br />

a<br />

browser,<br />

the<br />

server<br />

examines<br />

the<br />

content-length<br />

field<br />

in<br />

the<br />

HTTP<br />

header<br />

to<br />

determine<br />

the<br />

size<br />

of<br />

the<br />

incoming<br />

data.<br />

However,<br />

not<br />

all<br />

HTTP<br />

responses<br />

contain<br />

the<br />

content-length<br />

field.<br />

When<br />

the<br />

content-length<br />

field<br />

is<br />

not<br />

found,<br />

<strong>WebSEAL</strong><br />

compresses<br />

the<br />

document<br />

unless<br />

the<br />

applicable<br />

MIME-type<br />

has<br />

been<br />

configured<br />

to<br />

never<br />

be<br />

compressed<br />

(minimum_doc_size<br />

of<br />

-1).<br />

80<br />

<strong>IBM</strong><br />

<strong>Tivoli</strong><br />

<strong>Access</strong><br />

<strong>Manager</strong><br />

<strong>for</strong><br />

e-<strong>business</strong>:<br />

<strong>WebSEAL</strong><br />

<strong>Administration</strong><br />

Guide

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!