Ignore:
Timestamp:
Jan 22, 2010 3:07:45 AM (3 years ago)
Author:
alec
Message:
  • Removed problematic browser-caching of messages
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/steps/mail/show.inc

    r2933 r3217  
    4141  } 
    4242 
     43  send_nocacheing_headers(); 
     44 
    4345  $mbox_name = $IMAP->get_mailbox_name(); 
    4446   
    4547  // show images? 
    4648  rcmail_check_safe($MESSAGE); 
    47  
    48   // calculate Etag for this request 
    49   $etag = md5($MESSAGE->uid.$mbox_name.session_id() 
    50     .intval($MESSAGE->headers->mdn_sent) 
    51     .intval($MESSAGE->is_safe) 
    52     .(!empty($MESSAGE->attachments) ? intval($CONFIG['inline_images']) : '') 
    53     .intval($PRINT_MODE) 
    54     .$_SESSION['sort_col'].$_SESSION['sort_order'] 
    55     .$IMAP->messagecount($mbox_name, 'ALL', true) 
    56     ); 
    57  
    58   // allow caching, unless remote images are present 
    59   if ((bool)$MESSAGE->is_safe) 
    60     send_nocacheing_headers(); 
    61   else if (empty($CONFIG['devel_mode'])) 
    62     send_modified_header($_SESSION['login_time'], $etag, !$MESSAGE->headers->seen); 
    6349 
    6450  // set message charset as default 
Note: See TracChangeset for help on using the changeset viewer.