我有一个小问题,可能是缓存。 这是我的配置:
我有一个简单的页面,点击它,修改mySQL数据库上的项目,然后重新加载页面。
问题是:在服务器(Ubuntu)和客户端(Windows 8.1)方面,该页面仅在Firefox上正常工作。例如,在Chrome或IE上,页面仅在第一次更新,然后似乎是静态的。 我甚至试图把'#34; hard"像 退出; 这样的代码,但它显然没有做任何事情。这个基本的东西只适用于Firefox。
我考虑过缓存问题,但我不知道在哪里寻找。
编辑:代码
if(isset($_GET['Id']) && $this->isInt($_GET['Id'])){
$leCommercial = $this->getManagerCommerciaux()->Find($_GET['Id']);
if(!$leCommercial){
return "No retailer found";
}else{
if($leCommercial->getActif() == 0){
$leCommercial->setActif(1);
}else{
$leCommercial->setActif(0);
}
$this->getManagerCommerciaux()->Save($leCommercial);
$this->redirect($this->Shortcuts->getUrlSite().'commerciaux/');
}
}else{
return "Id is missing or a the bad format!";
}
答案 0 :(得分:0)
解决了问题。
在我的PHP代码中,我使用301标头进行了重定向。 谷歌镀铬缓存这种重定向时间相当长。