vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r21102: LJSUP-11148: revert changes

Committer: vad
LJSUP-11148: revert changes
U   trunk/cgi-bin/Apache/LiveJournal.pm
Modified: trunk/cgi-bin/Apache/LiveJournal.pm
===================================================================
--- trunk/cgi-bin/Apache/LiveJournal.pm	2012-02-06 09:16:25 UTC (rev 21101)
+++ trunk/cgi-bin/Apache/LiveJournal.pm	2012-02-06 09:17:21 UTC (rev 21102)
@@ -2079,7 +2079,9 @@
     }
 
     # other headers
-    LJ::Request->header_out(ETag => Compress::Zlib::crc32($html));
+    my $html_md5 = md5_base64($html);
+    LJ::Request->header_out(ETag => $html_md5);
+    LJ::Request->header_out('Content-MD5' => $html_md5);
 
     # Let caches know that Accept-Encoding will change content
     LJ::Request->header_out('Vary', 'Accept-Encoding, ETag');

Tags: livejournal, 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