Google Chrome no-cache and Login throw oauth services

I found this very annoying, it seem chrome optimization make it not works things like “login via facebook” or “login via twitter” button with this browser and make it wait forever.

I implemented oauth support for http://www.cellularmagazine.it/recensioni/inserisci.php and had a similar problem: Expires setted to access plus 10 minute (via .htaccess , this happen to set Cache-Control header too) and google do not reload the actual page but use the one in cache. I would suggest to remove Expires header or set it to past data, but I found out adding

header("Pragma: no-cache");

works for me. Overwriting the header Expire with current time also works:

header('Expires: '.gmdate('D, d M Y H:i:s \G\M\T'));

Probably in other browser serving an header Location: make the cache invalid, in chromium this is not true.

Anyway fix your code boys.


Posted

in

,

by

Tags: