vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[bml] r143: LJSUP-13142: Load ratings from CDN and f...

Committer: vad
LJSUP-13142: Load ratings from CDN and filter-out viewed records in browser using JS
U   trunk/lib/Apache/BML.pm
Modified: trunk/lib/Apache/BML.pm
===================================================================
--- trunk/lib/Apache/BML.pm	2012-02-06 09:17:40 UTC (rev 142)
+++ trunk/lib/Apache/BML.pm	2012-07-31 13:26:46 UTC (rev 143)
@@ -418,7 +418,7 @@
             $do_gzip = 1 if $Apache::BML::HAVE_ZLIB; # do if we could
         } else {
             ## other weighing
-            $do_gzip = 0 if $do_gzip && $content_type !~ m!^(text/html|text/javascript)!;
+            $do_gzip = 0 if $do_gzip && $content_type !~ m!(text/html|javascript)!;
             $do_gzip = 0 if $do_gzip && LJ::Request->header_in("Accept-Encoding") !~ /gzip/;
             $do_gzip = 0 if $length < 500;
         }

Tags: bml, pm, vad, vadvs
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments