But we can solve this in different ways as follows
so If the version of the file changed then the url also change. so if the url is different than the file which is already in cache, the browser (client) will request to get latest file from the server.
So these file will render to clients as follows
Loading from cache
Loading from server
Solution 2: If you are not using versioning use Asp.Net MVC datetime object ticks
In this case we just use ticks from C# datetime object as follows
Solution 3: Restart application and Recycle Application pool in IIS
Please do following steps after completion of your deployment in IIS
- Restart your website
2. Then find the applicationpool of your website and recycle it.
In case of Microsoft Azure websites