We are moving a site from one CMS to another. The .htaccess file has been changed and it needs to be refreshed for the new site to work right. From what I understand the .htaccess file will only be refreshed if the browser cache is cleared? It is fine for those creating the site to clear our cache, but is there a way to get the users' browsers to get the new .htaccess file without the user clearing cache manually on his own initiative?
相关问题
- Backbone.js PushState routes .htaccess only workin
- Stop .htaccess redirect with query string
- .htaccess rule, redirecting old unexistent address
- What is this file in .htaccess?
- If statements in .htaccess files, to enable passwo
相关文章
- Is there a google API to read cached content? [clo
- Google Chrome Cache
- Why does Google Chrome NOT use cached pages when I
- AWS API Gateway caching ignores query parameters
- Check if url is cached webview android
- WebView's LOAD_NO_CACHE setting still saves fi
- Multiple htaccess rewrite rule
- Cloudfront cache-control headers missing
I had a rewriterule in my .htaccess file like,
and once I opened the site in localhost it never gave me a chance to hard refresh the page.
Solution: I added a random string like localhost/mywebsite/index.php?1234
from https://stackoverflow.com/a/7749784/1066234
As soon as you replace the .htaccess file it will get reloaded by Apache and instantly be used for all subsequent requests. You do not need to refresh any caches.