我想设定一个Expires
所有页面请求的响应标头。我看到了doctype
在主题的标题中。php文件,所以我猜我可以将其设置在该行之前,但我想知道是否有更好或更合适/推荐的位置来执行此操作?
<?php
/** File: /themes/[theme]/header.php
* The header for our theme.
*
* Displays all of the <head> section and everything up till <div id="content">
*
* @package goorin
*/
// Should I set the Expires header here?
header(\'Expires: \' . gmdate($somedatetime) . \' GMT\');
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
......