vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r21099: LJSUP-6758: Add ETag http-header to resp...

Committer: vad
LJSUP-6758: Add ETag http-header to responses with journal content
U   trunk/cgi-bin/Apache/LiveJournal.pm
Modified: trunk/cgi-bin/Apache/LiveJournal.pm
===================================================================
--- trunk/cgi-bin/Apache/LiveJournal.pm	2012-02-06 08:00:12 UTC (rev 21098)
+++ trunk/cgi-bin/Apache/LiveJournal.pm	2012-02-06 08:26:07 UTC (rev 21099)
@@ -2079,9 +2079,7 @@
     }
 
     # other headers
-    my $html_md5 = md5_base64($html);
-    LJ::Request->header_out(ETag => $html_md5);
-    LJ::Request->header_out('Content-MD5' => $html_md5);
+    LJ::Request->header_out(ETag => Compress::Zlib::crc32($html));
 
     # 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