Index: imagefield.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/imagefield/imagefield.module,v
retrieving revision 1.92
diff -u -r1.92 imagefield.module
--- imagefield.module	28 Mar 2009 03:10:11 -0000	1.92
+++ imagefield.module	29 Mar 2009 01:01:11 -0000
@@ -287,7 +287,9 @@
   }
   // Alt text should be added even if it is an empty string.
   $attributes['alt'] = $alt;
-  $url = file_create_url($file['filepath']) . '?' . $file['timestamp'];
+  // Add a timestamp to the URL to ensure it is immediately updated after editing.
+  $query_character = (variable_get('file_downloads', FILE_DOWNLOADS_PUBLIC) == FILE_DOWNLOADS_PRIVATE && variable_get('clean_url', '0') == '0') ? '&' : '?';
+  $url = file_create_url($file['filepath']) . $query_character . $file['timestamp'];
   $attributes['src'] = $url;
   $attributes = drupal_attributes($attributes);
   return '<img '. $attributes .' />';
