web.config 1.8 KB

12345678910111213141516171819202122232425262728293031
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <configuration>
  3. <system.webServer>
  4. <caching>
  5. <profiles>
  6. <add extension=".eot" policy="DontCache" kernelCachePolicy="CacheUntilChange" duration="00:00:30" />
  7. <add extension=".svg" policy="DontCache" kernelCachePolicy="CacheUntilChange" duration="00:00:30" />
  8. <add extension=".ttf" policy="DontCache" kernelCachePolicy="CacheUntilChange" duration="00:00:30" />
  9. <add extension=".woff" policy="DontCache" kernelCachePolicy="CacheUntilChange" duration="00:00:30" />
  10. <add extension=".woff2" policy="DontCache" kernelCachePolicy="CacheUntilChange" duration="00:00:30" />
  11. <add extension=".jpg" policy="DontCache" kernelCachePolicy="CacheUntilChange" duration="00:00:30" />
  12. <add extension=".png" policy="DontCache" kernelCachePolicy="CacheUntilChange" duration="00:00:30" />
  13. <add extension=".html" policy="DontCache" kernelCachePolicy="CacheUntilChange" duration="00:00:30" />
  14. <add extension=".js" policy="DontCache" kernelCachePolicy="CacheUntilChange" duration="00:00:30" />
  15. <add extension=".css" policy="DontCache" kernelCachePolicy="CacheUntilChange" duration="00:00:30" />
  16. </profiles>
  17. </caching>
  18. <httpProtocol>
  19. <customHeaders>
  20. <add name="Cache-Control" value="public" />
  21. </customHeaders>
  22. </httpProtocol>
  23. <staticContent>
  24. <remove fileExtension=".woff" />
  25. <remove fileExtension=".woff2" />
  26. <mimeMap fileExtension=".woff" mimeType="font/x-font-woff" />
  27. <mimeMap fileExtension=".woff2" mimeType="font/x-font-woff" />
  28. </staticContent>
  29. </system.webServer>
  30. </configuration>