vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r17492: Add ?v=1 param to image urls. Perlbal ad...

Committer: vsukhanov
Add ?v=1 param to image urls. Perlbal adds "Expires", "Cache-Control" and "ETag" headers to such stat files.
U   trunk/cgi-bin/imageconf.pl
Modified: trunk/cgi-bin/imageconf.pl
===================================================================
--- trunk/cgi-bin/imageconf.pl	2010-10-04 07:17:56 UTC (rev 17491)
+++ trunk/cgi-bin/imageconf.pl	2010-10-04 07:24:33 UTC (rev 17492)
@@ -6,98 +6,98 @@
 use vars qw(%img);
 
 $img{'ins_obj'} = {
-    'src' => '/ins-object.gif',
+    'src' => '/ins-object.gif?v=1',
     'width' => 129,
     'height' => 52,
     'alt' => 'img.ins_obj',
 };
 
 $img{'btn_up'} = {
-    'src' => '/btn_up.gif',
+    'src' => '/btn_up.gif?v=1',
     'width' => 22,
     'height' => 20,
     'alt' => 'img.btn_up',
 };
 
 $img{'btn_down'} = {
-    'src' => '/btn_dn.gif',
+    'src' => '/btn_dn.gif?v=1',
     'width' => 22,
     'height' => 20,
     'alt' => 'img.btn_down',
 };
 
 $img{'btn_del'} = {
-    'src' => '/btn_del.gif',
+    'src' => '/btn_del.gif?v=1',
     'width' => 24,
     'height' => 24,
     'alt' => 'img.btn_del',
 };
 
 $img{'btn_freeze'} = {
-    'src' => '/btn_freeze.gif',
+    'src' => '/btn_freeze.gif?v=1',
     'width' => 24,
     'height' => 24,
     'alt' => 'img.btn_freeze',
 };
 
 $img{'btn_unfreeze'} = {
-    'src' => '/btn_unfreeze.gif',
+    'src' => '/btn_unfreeze.gif?v=1',
     'width' => 24,
     'height' => 24,
     'alt' => 'img.btn_unfreeze',
 };
 
 $img{'btn_scr'} = {
-    'src' => '/btn_scr.gif',
+    'src' => '/btn_scr.gif?v=1',
     'width' => 24,
     'height' => 24,
     'alt' => 'img.btn_scr',
 };
 
 $img{'btn_unscr'} = {
-    'src' => '/btn_unscr.gif',
+    'src' => '/btn_unscr.gif?v=1',
     'width' => 24,
     'height' => 24,
     'alt' => 'img.btn_unscr',
 };
 
 $img{'prev_entry'} = {
-    'src' => '/btn_prev.gif',
+    'src' => '/btn_prev.gif?v=1',
     'width' => 24,
     'height' => 24,
     'alt' => 'img.prev_entry',
 };
 
 $img{'next_entry'} = {
-    'src' => '/btn_next.gif',
+    'src' => '/btn_next.gif?v=1',
     'width' => 24,
     'height' => 24,
     'alt' => 'img.next_entry',
 };
 
 $img{'memadd'} = {
-    'src' => '/memadd.gif',
+    'src' => '/memadd.gif?v=1',
     'width' => 24,
     'height' => 24,
     'alt' => 'img.memadd',
 };
 
 $img{'editentry'} = {
-    'src' => '/btn_edit.gif',
+    'src' => '/btn_edit.gif?v=1',
     'width' => 24,
     'height' => 24,
     'alt' => 'img.editentry',
 };
 
 $img{'edittags'} = {
-    'src' => '/btn_edittags.gif',
+    'src' => '/btn_edittags.gif?v=1',
     'width' => 24,
     'height' => 24,
     'alt' => 'img.edittags',
 };
 
 $img{'tellfriend'} = {
-    'src' => '/btn_tellfriend.gif',
+    'src' => '/btn_tellfriend.gif?v=1',
     'width' => 24,
     'height' => 24,
     'alt' => 'img.tellfriend',
@@ -111,49 +111,49 @@
 };
 
 $img{'xml'} = {
-    'src' => '/xml.gif',
+    'src' => '/xml.gif?v=1',
     'width' => 36,
     'height' => 14,
     'alt' => 'img.xml',
 };
 
 $img{'track'} = {
-    'src' => '/btn_track.gif',
+    'src' => '/btn_track.gif?v=1',
     'width' => 24,
     'height' => 24,
     'alt' => 'img.track',
 };
 
 $img{'track_active'} = {
-    'src' => '/btn_tracking.gif',
+    'src' => '/btn_tracking.gif?v=1',
     'width' => 24,
     'height' => 24,
     'alt' => 'img.track_active',
 };
 
 $img{'track_thread_active'} = {
-    'src' => '/btn_tracking_thread.gif',
+    'src' => '/btn_tracking_thread.gif?v=1',
     'width' => 24,
     'height' => 24,
     'alt' => 'img.track_thread_active',
 };
 
 $img{'flag'} = {
-    'src' => '/button-flag.gif',
+    'src' => '/button-flag.gif?v=1',
     'width' => 24,
     'height' => 24,
     'alt' => 'img.flag_btn',
 };
 
 $img{'editcomment'} = {
-    'src' => '/btn_edit.gif',
+    'src' => '/btn_edit.gif?v=1',
     'width' => 24,
     'height' => 24,
     'alt' => 'img.editcomment',
 };
 
 $img{'sharethis'} = {
-    'src' => '/btn_sharethis.gif',
+    'src' => '/btn_sharethis.gif?v=1',
     'width' => 24,
     'height' => 24,
     'alt' => 'img.sharethis',

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