Hi,
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.
Thanks
Hi,
The easiest way is to add the parameter to the css file. Here is example:
Old code:
<link href="/css/my.css" type="text/css"/>
Modified code:
<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.
Thanks
Ads