Changeset 37e467d in github


Ignore:
Timestamp:
Jun 17, 2010 4:01:20 AM (3 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
ce06d32
Parents:
306f15d
Message:
  • Fix no-cache headers on https to prevent content caching by proxies (#1486798)
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CHANGELOG

    rf19d86b r37e467d  
    22=========================== 
    33 
     4- Fix no-cache headers on https to prevent content caching by proxies (#1486798) 
    45- Fix attachment filenames broken with TNEF decoder using long filenames (#1486795) 
    56- Use user's timezone in Date header, not server's timezone (#1486119) 
  • program/include/rcube_shared.inc

    rd311d80 r37e467d  
    3333function send_nocacheing_headers() 
    3434{ 
     35  global $OUTPUT; 
     36 
    3537  if (headers_sent()) 
    3638    return; 
     
    3840  header("Expires: ".gmdate("D, d M Y H:i:s")." GMT"); 
    3941  header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); 
    40   header("Cache-Control: private, must-revalidate, post-check=0, pre-check=0"); 
     42  header("Cache-Control: private, no-cache, must-revalidate, post-check=0, pre-check=0"); 
    4143  header("Pragma: no-cache"); 
    4244  // Request browser to disable DNS prefetching (CVE-2010-0464) 
    4345  header("X-DNS-Prefetch-Control: off"); 
    44    
     46 
    4547  // We need to set the following headers to make downloads work using IE in HTTPS mode. 
    46   if (rcube_https_check()) { 
    47     header('Pragma: '); 
    48     header('Cache-Control: '); 
     48  if ($OUTPUT->browser->ie && rcube_https_check()) { 
     49    header('Pragma: private'); 
    4950  } 
    5051} 
Note: See TracChangeset for help on using the changeset viewer.