Disable Application Cache during development on IIS.
March 24, 2014
0 Comments
In production we use Application Cache, to distribute a new version of a Single Page Application.
In development I immediately want to see my CSS, JavaScript and HTML code changes, without changing the “*.appcache” on every save. This is why I disable de Application Cache in development by “not serving” the “*.appcache” file:
<system.webServer> <staticContent> <remove fileExtension=".woff" /> <mimeMap fileExtension=".woff" mimeType="application/font-woff" /> <mimeMap fileExtension=".appcache" mimeType="text/cache-manifest" /> <!-- To disable appCache during development, comment line above and uncomment line below. --> <!--<mimeMap fileExtension=".wrongAppcache" mimeType="text/cache-manifest" />--> </staticContent>Tags: HTML 5, Javascript