Professional Documents
Culture Documents
5 +)
Contents
11
ns-feo-con
Due to technical difficulties, we are unable to display this topic. Citrix is currently fixing
this problem. In the meantime, you can view this topic online:
http://support.citrix.com/proddocs/index.jsp?lang=en&topic=/ns-optimization-10-5-map/n
s-feo-con.html
3. The ADC rewrites the embedded objects and saves the optimized content in the cache.
4. For subsequent requests, the ADC fetches the optimized objects from the cache, not
from the server, and forwards the response to the client.
Set the maximum response size and memory limit for a default cache content group.
bind lb vserver
name
Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_)
character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.),
space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed
after the virtual server is created.
CLI Users: If the name includes one or more spaces, enclose the name in double or single
quotation marks (for example, "my vserver" or 'my vserver').
policyName
Name of the policy to bind to the virtual server.
View description(s) in command reference Top
bind cs vserver
name
Name of the content switching virtual server to which the content switching policy
applies.
policyName
Name of the content switching policy to bind to the content switching virtual server Must
begin with an ASCII alphanumeric or underscore (_) character, and must contain only
ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal
sign (=), and hyphen (-) characters. Cannot be changed after a policy is created.
To bind a content switching policy, you need a content-based virtual server (content
switching virtual server) and an address-based virtual server (load balancing virtual
server). You can assign multiple policies to the virtual server pair.
Note: When binding a CS virtual server to a default LB virtual server, the Policy Name
parameter is optional.
The following requirement applies only to the NetScaler CLI:
If the name includes one or more spaces, enclose the name in double or single quotation
marks (for example, "my policy" or 'my policy').
View description(s) in command reference Top
save ns config
No parameters provided in this topic or the command has no parameters. View
description(s) in command reference Top
10
Sample Optimization
The following table lists some examples of content optimization actions that are applied on
HTML content and the embedded objects within the HTML content.
Optimization rule
Sample
Before:
<title>Hello,
world! </title>
After:
<title>Hello, world!</title>
Combine CSS
Before:
<link rel="stylesheet" type="text/css" href="sheet/abc.css">
<link rel="stylesheet" type="text/css" href="sheet/xyz.css">
After:
<link rel="stylesheet" type="text/css" href="sheet/abc.css+xyz.css">
11
Sample Optimization
Inline CSS
Before
<html>
<head>
<link rel="sheet" href="abc.css"/>
</head>
<body>
<div class="abc xyz"/>
Hi!
</body>
</html>
Note: abc.css contains
.Alice {location: Australia;}
.Tom {location: Asia;}
After
<html>
<head>
<style>
.Alice {location: Australia;}
.Tom {location: Asia;}
</style>
</head>
<body>
<div class="abc xyz">
Hi!
</div>
</body>
</html>
12
Sample Optimization
Move CSS to head
Before:
<html>
<head>
</head>
<body>
<script src="abc.js" type="text/javascript"></script>
<div class="monday tuesday>
Hi!
</div>
<style type="text/css">
.foo { day: wednesday; }
</style>
<link rel="stylesheet" type="text/css" href="styles/all_styles.css">
</body>
</html>
After:
<html>
<head>
<style type="text/css">
.foo { day: wednesday; }
</style>
</head>
<body>
<script src="abc.js" type="text/javascript"></script>
<div class="monday tuesday>
Hi!
</div>
<link rel="stylesheet" type="text/css" href="styles/all_styles.css">
</body>
</html>
Minify JavaScript
Before:
/* Remove this comment */
document.write("abc " + state);
state += 1; // Update this.
After:
document.write("abc "+state);state+=1;
13
Sample Optimization
Convert linked JavaScript to
inline JavaScript
Before
<html>
<head>
<script type="text/javascript" src="abc.js"></script>
</head>
<body>
<div>
Hi!
</div>
</body>
</html>
Note: abc.js contains
/* contents of abc JavaScript file */
After
<html>
<head>
<script type="text/javascript">
/* contents of abc JavaScript file */
</script>
</head>
<body>
<div class="abc">
Hi!
</div>
</body>
</html>
14