I have written a login script to redirect back to the index page once you have logged in, and thus reloading the index page for a logged in user, it just displays the previously loaded index page. The new Firefox 12 update doesn't reload the index page once the login script has redirected it back. This problem occurs again and again throughout my site when the processing script redirects Firefox back to a page it has already loaded.
Ive tried turning off caching in PHP with:
<?php
header( "Last-Modified: " . gmdate( "D, j M Y H:i:s" ) . " GMT" );
header( "Expires: " . gmdate( "D, j M Y H:i:s", time() ) . " GMT" );
header( "Cache-Control: no-store, no-cache, must-revalidate" );
header( "Cache-Control: post-check=0, pre-check=0", FALSE );
header( "Pragma: no-cache" ); ?>
and in .htaccess
with:
<filesMatch "\.(php)$">
FileETag None
<ifModule mod_headers.c>
Header unset ETag
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
</ifModule>
</filesMatch>
Can anyone explain why Firefox 12.0 is doing this? It doesn't do it in other browsers. How can it be solved as soon as possible?
Thanks.
UPDATE: It worked fine in the previous version of Firefox and all other browsers. All it's doing is redirecting back to the index page where it should reload for the newly logged in user, yet it still displays the original home page. When you click a link to the homepage it will then load the homepage properly for the user.
I have noticed the same issue after upgrading from Firefox 11 to 12. My shopping cart no longer works correctly unless I append a random string to the URL on each request.
http://support.mozilla.org/en-US/questions/926043
just set
header("Cache-Control: no-cache");
before your
header("Location:".$url);
greetings, daniel
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With