Mobile app version of vmapp.org
Login or Join
Murphy175

: 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

@Murphy175

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.

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Murphy175

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme