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>

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Related Posts