watsmyname Posted August 5, 2011 Share Posted August 5, 2011 Hello, I have rewritten all my .php files to .html using mod_rewrite. But now i have encountered a problem. Below is the example of code i used. RewriteRule ^band/details/([0-9].*).html$ band_details.php?band_id=$1 [L] The Problem is that, when i edit user info and redirect user to band_details.php page [in this case http://www.mysite.com/band/details/1.html], i don't see the updated content. No matter how many times i refresh the page i dont see updated contents. I have to CTRL+F5 to see the changes. The issue i guess is that i have rewritten this in .html and browser loads html files from cache. How to overcome this issue? Any help will be highly appreciable. I also tried following code to prevent loading from cache but in vain. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="no-cache"> <meta http-equiv="Expires" content="Wed, 19 Feb 2003 08:00:00 GMT"> <meta http-equiv="Cache-Control" content="no-cache"> Quote Link to comment https://forums.phpfreaks.com/topic/243918-mod-rewrite-problem-when-data-contents-are-updated/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.