Warm tip: This article is reproduced from stackoverflow.com, please click
.htaccess browser-cache cache-control caching

Can I force .htaccess to refresh?

发布于 2020-07-20 00:34:43

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?

Questioner
Johann Dyck
Viewed
49
2017-05-23 20:34

If you're using RewriteRule, just use R instead of R=301. For other purposes, you'll have to clear your browser cache whenever you change a redirect.

from https://stackoverflow.com/a/7749784/1066234