title: Adding ?nocache=1 to every url (including the assets like stylesheet) behind the scenes using mod rewrite
body: <p>Alright, this is due to the pain that godaddy gives me by implementing their own caching in a MANAGED WORDPRESS hosting. I looked it up and as it turns out, their flush caching facility is not available to me in the wordpress dashboard as it is a subdirectory /wp/ installation.</p>
  
  <p>Also, there is no setting to enable "development mode" which apparently turns off caching on the godaddy control panel.</p>
  
  <p>But what I would like to do is to apply ?nocache=1 to every URL related to the site (including the assets like style.css) so that I get the non cached version of the files.</p>
  
  <p>For example, if I put </p>
  
  <blockquote>
    <p><a href="http://example.com/wp/wp-content/themes/example-theme/style.css" rel="nofollow">http://example.com/wp/wp-content/themes/example-theme/style.css</a></p>
  </blockquote>
  
  <p>in the browser, I get a cached version of the stylesheet which does not reflect the recent one. But if I put..</p>
  
  <blockquote>
    <p><a href="http://example.com/wp/wp-content/themes/example-theme/style.css?nocache=1" rel="nofollow">http://example.com/wp/wp-content/themes/example-theme/style.css?nocache=1</a></p>
  </blockquote>
  
  <p>It shows up the most recent one.</p>
  
  <p>Is this possible? If yes, could someone be kind enough to show me how? Perhaps Something like this... (it doesn't work!)..</p>
  
  <pre><code># BEGIN WordPress
  &lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /wp/
  
  RewriteRule ^index\.php$ - [L]
  
  RewriteCond %{REQUEST_FILENAME} -f
  RewriteRule (.*) $1?nocache=1 [R]
  
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /wp/index.php [L]
  &lt;/IfModule&gt;
  
  # END WordPress
  </code></pre>
  
  <p>Thanks for your help!</p>