Vote count:
0
I experienced a problem with a feature of Chrome browser: all redirect codes (30X) get cached in browser for mobile version of site. Here is the Zend Framework solution I found to be added to your Controller
public function preDispatch()
{
if ({check_if_mobile_version}) {
$response = $this->getResponse();
$response->setHeader('Cache-Control', 'no-store, no-cache, must-revalidate, max-age=0', true);
$response->setHeader('Pragma', 'no-cache', true);
$response->sendResponse();
}
}
If anyone has a better solution please don't hesitate to share
asked 3 mins ago
Zend and browsers redirect cache
Aucun commentaire:
Enregistrer un commentaire