How can I refresh CSS caching?
I already attach query string to my url
but the style on the page was still not updated. In my IE's developer tool on css tab show both css file. How can I fixed this problem?
Thank you in advance.
Each time you make a change and want to force the browser to fetch the latest version, you need to update the number on the end of your path, so something like:
etc. The number can be anything, it doesn't need to be sequential. It just tells the browser that a different version is required.
In your case, your changes are not visible because you are specifying a particular version of your file. If you remove the version number parameter from your path, then clear the cache, you should see your changes:
You can also press
Ctrl+F5 to force the browser to do a 'hard refresh', which re-fetches all assets.
As a last resort (and a good habit to get into if you're developing) is clearing the cache regularly. In most browsers, you can do this with
Ctrl+Shift+Del. You can also do this automatically in Chrome by selecting
Disable cache (while dev tools are open), and leaving the dev tools open with