I have a website with many thousand users visiting per day. I have changes the css file and uploaded it on server. Now some user is getting the old css file. Let's know what could be the easiest method to solve the browser cache issue?
There is not way to tell the users of my site to clear the cache. I need some smart solution.
The easiest way is to add the parameter to the css file. Here is example:
<link href="/css/my.css" type="text/css"/>
<link href="/css/my.css?v=1" type="text/css"/>
Please note down that we have added ?v=1 after the css file name.
Hope above trick will help you.