Jump to content

Recommended Posts

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">

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.