finance_teacher
asked on
Internet Explorer -- prevent css file cache
I need to prevent Internet Explorer css file cache.
How can I fix the below \App_Start\BundleConfig.cs or another file to include “?version=1” or something ?
Steps
1. Create new ASP.net MVC 4 C# APP
2. Open \Content\Site.css
• Change H2 font size
3. Run app
• Font change appears
4. Change H2 font size again
5. Run app again
• Font change does not appear
6. Open \Views\Shared\_Layout.csht ml
• Add below inside <head> after other CSS statements
• link href="@Url.Content("/Conte nt/Site.cs s? version=1")" rel="stylesheet" type="text/css" />
7. Run app again
• Font change appears correctly
How can I fix the below \App_Start\BundleConfig.cs
Steps
1. Create new ASP.net MVC 4 C# APP
2. Open \Content\Site.css
• Change H2 font size
3. Run app
• Font change appears
4. Change H2 font size again
5. Run app again
• Font change does not appear
6. Open \Views\Shared\_Layout.csht
• Add below inside <head> after other CSS statements
• link href="@Url.Content("/Conte
7. Run app again
• Font change appears correctly
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I've requested that this question be deleted for the following reason:
Not enough information to confirm an answer.
Not enough information to confirm an answer.
ASKER