Permalink
Browse files

updated README

  • Loading branch information...
1 parent d8e866c commit 22e3dcaecd348df80228c1a89fc96ec74d8323a6 Masahiro Nagano committed Feb 2, 2011
Showing with 8 additions and 8 deletions.
  1. +8 −8 README
View
16 README
@@ -9,18 +9,18 @@ SYNOPSIS
my $env = shift;
my $ua = $env->{HTTP_USER_AGENT} || '';
# Netscape has some problem
- $env->{"psgix.gzip-only-text/html"} = 1 if $ua =~ m!^Mozilla/4!;
+ $env->{"psgix.compress-only-text/html"} = 1 if $ua =~ m!^Mozilla/4!;
# Netscape 4.06-4.08 have some more problems
- $env->{"psgix.no-gzip"} = 1 if $ua =~ m!^Mozilla/4\.0[678]!;
+ $env->{"psgix.no-compress"} = 1 if $ua =~ m!^Mozilla/4\.0[678]!;
# MSIE (7|8) masquerades as Netscape, but it is fine
if ( $ua =~ m!\bMSIE (?:7|8)! ) {
- $env->{"psgix.no-gzip"} = 0;
- $env->{"psgix.gzip-only-text/html"} = 0;
+ $env->{"psgix.no-compress"} = 0;
+ $env->{"psgix.compress-only-text/html"} = 0;
}
$app->($env);
}
};
- enable "Deflater"
+ enable "Deflater",
content_type => ['text/css','text/html','text/javascript','application/javascript'],
vary_user_agent => 1;
@@ -49,11 +49,11 @@ CONFIGURATIONS
Add "User-Agent" to Vary header.
ENVIRONMENT VALUE
- psgix.no-gzip
+ psgix.no-compress
Do not apply deflater
- psgix.gzip-only-text/html
- apply deflater only if content_type is "text/html"
+ psgix.compress-only-text/html
+ Apply deflater only if content_type is "text/html"
LICENSE
This software is licensed under the same terms as Perl itself.

0 comments on commit 22e3dca

Please sign in to comment.