: I am using XAMPP on Windows 7, and was experiencing the same issue. From my experimentation it appears that the caching of redirects is being carried out by the web browser, not Apache. To
I am using XAMPP on Windows 7, and was experiencing the same issue. From my experimentation it appears that the caching of redirects is being carried out by the web browser, not Apache.
To demonstrate:
Add the following rule to your .htaccess file:
RewriteRule ^fail/?$ fail.php [L,R=301]
Visit /fail in your web browser. You should be redirected to fail.php
Change the reference in your .htaccess file from fail.php to fail2.php
Visit /fail in your web browser again.
You should be redirected to fail2.php, but you end up at fail.php
Now visit /fail in a different web browser on the same machine, you should end up correctly at fail2.php.
The browser that was giving me issues was Firefox 6.0.
It appears that newer web browser will cache HTTP 301 redirects locally - they are defined as a permanent redirect, so should never change. However it's a pain when you are a developer and still working on a site and changing things.
More posts by @Murphy175
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.