0

I have made changes to a css file in a mvc5 website that is deployed on IIS 7. I used the bundle configuration to setup the css files in the website so the css has been cached as /website/content/css?v=Bz3KZjU_pdOm2wAVr7z_ylCuQzQDs1O8N6pV4cvXc_Q1. Now the changes I have made on the css included in that bundle are not being shown in the browser. I have tried the following with no effect.

  • reset IIS
  • delete temporary internet files
  • touch the web.config file
  • recycle app pool
  • refreshing the browser using f5

I do not know what else to try..

user3541362
  • 329
  • 2
  • 8
  • 16
  • did you try to use the development tools of your browser ? In the network tab, check the HTTP status when you get the bundle. Generally the cache is disable when using dev tools. – NicoD Jun 24 '14 at 08:17
  • in network tab it says 304 not modified. when it has been – user3541362 Jun 24 '14 at 08:34
  • so the bundle is not up to date. Did you use minify version ? It could be the problem according to this [post](http://stackoverflow.com/questions/12158933/asp-net-bundling-bundle-not-updating-after-included-file-has-changed-returns) – NicoD Jun 24 '14 at 08:42
  • no i didnt use the minified version – user3541362 Jun 24 '14 at 08:44
  • Sorry i did have a minified version. I deleted that and problem went away. thanksvery much for your help – user3541362 Jun 24 '14 at 08:47

2 Answers2

0

Generally, in release the bundle uses the minified versions so update or delete the minified versions to see if it's help. See this post for more details.

Community
  • 1
  • 1
NicoD
  • 1,179
  • 8
  • 19
0

In some cases this may happen, You have to forces clear your cache and cookie. There are some way to forces clear your cookie

  1. Start browser InPrivate browsing.
  2. In developer tool(Pressing F12) choice Cache->Always refresh from server this may some time.
  3. In developer tool script tab press start debugging.
Aravind Sivam
  • 1,089
  • 8
  • 23