IIS7: Cache Setting Not Working… why?

前端 未结 1 1958
悲哀的现实
悲哀的现实 2021-01-21 20:04

My IIS7 web.config is set to the following with a folder of static assets (not within an ASP.NET app or anything):



        
相关标签:
1条回答
  • 2021-01-21 20:46

    You need to configure IIS to treat XAP as static content. Try this:

    <configuration>
       <system.webServer>
        <staticContent>
          <mimeMap fileExtension=".xaml" mimeType="application/xaml+xml" />
          <mimeMap fileExtension=".xap" mimeType="application/x-silverlight-app" />
          <mimeMap fileExtension=".xbap" mimeType="application/x-ms-xbap" />
        </staticContent>
       </system.webServer>
    </configuration> 
    
    0 讨论(0)
提交回复
热议问题