Changeset 18143


Ignore:
Timestamp:
2009/06/28 19:31:14 (11 years ago)
Author:
ramrun
Message:

#261 session_cache_limiter('private_no_expire')に代わり同等のヘッダーを上書きする

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/class/pages/LC_Page.php

    r18140 r18143  
    317317     */ 
    318318    function allowClientCache() { 
    319         session_cache_limiter('private_no_expire'); 
     319        $cache_expire = session_cache_expire() * 60; 
     320        header('Pragma:'); 
     321        header('Expires:'); 
     322        header("Cache-Control: private, max-age={$cache_expire}, pre-check={$cache_expire}"); 
     323        header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); 
    320324    } 
    321325 
Note: See TracChangeset for help on using the changeset viewer.