Friday, October 30, 2015

if CSS style sheet changed

Control  F5 to clear the cache to reload the style sheet

http://stackoverflow.com/questions/2263096/css-file-is-not-refreshing-in-my-browser


or weeks? Try opening the style sheet itself (by entering its address into the browser's address bar) and pressing F5. If it still doesn't refresh, your problem lies elsewhere.
If you update a style sheet and want to make sure it gets refreshed in every visitor's cache, a very popular method to do that is to add a version number as a GET parameter. That way, the style sheet gets refreshed when necessary, but not more often than that.
<link rel="stylesheet" type="text/css" href="styles.css?version=51">

No comments:

Post a Comment