ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 7420


Ignore:
Timestamp:
May 27, 2008, 1:46:14 AM (14 years ago)
Author:
ogawa
Message:

#2439:xhtml_style.phpの呼び出しにhash値を付与、Expiresヘッダを出力し、Etagは削除

Location:
OpenPNE/trunk
Files:
1 added
8 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/public_html/xhtml_style.php

    r7337 r7420  
    88require_once OPENPNE_WEBAPP_DIR . '/init.inc';
    99require_once 'smarty_plugins/function.t_img_url_skin.php';
    10 require_once 'Etag.php';
    1110
    1211$custom_css = p_common_c_siteadmin4target_pagename('inc_custom_css');
     
    2524);
    2625
    27 $skin_filename_list = db_get_c_skin_filename_list();
    28 
    29 $etag_key = md5(OPENPNE_ENABLE_ROLLOVER . OPENPNE_SKIN_THEME . $custom_css . serialize($decoration_config) . serialize($colors) . serialize($skin_filename_list));
    30 $etag =& new Etag($etag_key, @filemtime(__FILE__));
    31 if ($etag->etagCheck()) {
    32     exit;
    33 }
    34 
    3526function getSkin($name)
    3627{
     
    4031
    4132header('Content-Type: text/css');
     33
     34header('Cache-Control: max-age=315360000');
     35header('Expires: ' . gmdate('D, d M Y H:i:s', strtotime('+10 years')) . ' GMT');
    4236?>
    4337@charset "UTF-8";
  • OpenPNE/trunk/webapp/modules/openid/templates/server_confirm.tpl

    r7373 r7420  
    66<meta http-equiv="Content-Style-Type" content="text/css" />
    77<title>({if $smarty.const.SNS_TITLE})({$smarty.const.SNS_TITLE})({else})({$smarty.const.SNS_NAME})({/if})</title>
    8 <link rel="stylesheet" href="./xhtml_style.php?v=({$smarty.const.OPENPNE_VERSION})" type="text/css" />
     8<link rel="stylesheet" href="({t_url_style})" type="text/css" />
    99</head>
    1010<body><div id="Body">
  • OpenPNE/trunk/webapp/modules/openid/templates/server_error.tpl

    r7373 r7420  
    66<meta http-equiv="Content-Style-Type" content="text/css" />
    77<title>({if $smarty.const.SNS_TITLE})({$smarty.const.SNS_TITLE})({else})({$smarty.const.SNS_NAME})({/if})</title>
    8 <link rel="stylesheet" href="./xhtml_style.php?v=({$smarty.const.OPENPNE_VERSION})" type="text/css" />
     8<link rel="stylesheet" href="({t_url_style})" type="text/css" />
    99</head>
    1010<body><div id="Body">
  • OpenPNE/trunk/webapp/modules/pc/templates/common/layout.tpl

    r7373 r7420  
    88<meta http-equiv="Content-Script-Type" content="text/javascript" />
    99<title>({$INC_HEADER_title})</title>
    10 <link rel="stylesheet" href="./xhtml_style.php?v=({$smarty.const.OPENPNE_VERSION})" type="text/css" />
     10<link rel="stylesheet" href="({t_url_style})" type="text/css" />
    1111<script type="text/javascript" src="./js/prototype.js?r7140"></script>
    1212<script type="text/javascript" src="./js/Selection.js?r7140"></script>
  • OpenPNE/trunk/webapp/modules/pc/templates/h_album_image_insert_dialog.tpl

    r7373 r7420  
    99<script type="text/javascript" src="./js/tiny_mce/tiny_mce_popup.js?r7140"></script>
    1010<title>({$INC_HEADER_title})</title>
    11 <link rel="stylesheet" href="./xhtml_style.php?v=({$smarty.const.OPENPNE_VERSION})" type="text/css" />
     11<link rel="stylesheet" href="({t_url_style})" type="text/css" />
    1212<script type="text/javascript">
    1313//<![CDATA[
  • OpenPNE/trunk/webapp/modules/pc/templates/h_album_insert_dialog.tpl

    r7373 r7420  
    99<script type="text/javascript" src="./js/tiny_mce/tiny_mce_popup.js?r7140"></script>
    1010<title>({$INC_HEADER_title})</title>
    11 <link rel="stylesheet" href="./xhtml_style.php?v=({$smarty.const.OPENPNE_VERSION})" type="text/css" />
     11<link rel="stylesheet" href="({t_url_style})" type="text/css" />
    1212<script type="text/javascript">
    1313//<![CDATA[
  • OpenPNE/trunk/webapp_biz/modules/biz/templates/common/layout.tpl

    r7373 r7420  
    88<meta http-equiv="Content-Script-Type" content="text/javascript" />
    99<title>({$INC_HEADER_title})</title>
    10 <link rel="stylesheet" href="./xhtml_style.php?v=({$smarty.const.OPENPNE_VERSION})" type="text/css" />
     10<link rel="stylesheet" href="({t_url_style})" type="text/css" />
    1111<script type="text/javascript" src="./js/prototype.js?r7140"></script>
    1212<script type="text/javascript" src="./js/Selection.js?r7140"></script>
  • OpenPNE/trunk/webapp_biz/modules/pc/templates/common/layout.tpl

    r7373 r7420  
    88<meta http-equiv="Content-Script-Type" content="text/javascript" />
    99<title>({$INC_HEADER_title})</title>
    10 <link rel="stylesheet" href="./xhtml_style.php?v=({$smarty.const.OPENPNE_VERSION})" type="text/css" />
     10<link rel="stylesheet" href="({t_url_style})" type="text/css" />
    1111<script type="text/javascript" src="./js/prototype.js?r7140"></script>
    1212<script type="text/javascript" src="./js/Selection.js?r7140"></script>
Note: See TracChangeset for help on using the changeset viewer.