PHP文件为什么会有缓存,而且只有在谷歌
SingleLink.class.php
<br /><?php<br />class Hero{<br /> private $id;<br /> private $name;<br /> private $nickname;<br /> private $next = null;<br /> public function getId() {<br /> return $this->id;<br /> }<br /><br /> public function setId($id) {<br /> $this->id = $id;<br /> }<br /><br /> public function getName() {<br /> return $this->name;<br /> }<br /><br /> public function setName($name) {<br /> $this->name = $name;<br /> }<br /><br /> public function getNickname() {<br /> return $this->nickname;<br /> }<br /><br /> public function setNickname($nickname) {<br /> $this->nickname = $nickname;<br /> }<br /><br /> public function getNext() {<br /> return $this->next;<br /> }<br /><br /> public function setNext($next) {<br /> $this->next = $next;<br /> }<br /><br /> function __construct($id="",$name="",$nickname=""){<br /> $this->id = $id;<br /> $this->name = $name;<br /> $this->nickname = $nickname;<br /> }<br />}<br />?><br />
<br /><?php<br />header("Cache-Control: no-cache, must-revalidate");<br />require_once 'SingleLink.class.php';<br />$head = new Hero();<br />$hero = new Hero(1,"宋江","及时雨");<br />echo $hero->getName();<br />?><br />