Web.config 1.7 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <configuration>
  3. <system.web>
  4. <httpRuntime executionTimeout="300" maxRequestLength="8192"/>
  5. </system.web>
  6. <system.webServer>
  7. <defaultDocument>
  8. <files>
  9. <clear />
  10. <add value="index.php" />
  11. <add value="index.html" />
  12. </files>
  13. </defaultDocument>
  14. <urlCompression doStaticCompression="true" doDynamicCompression="true"/>
  15. <staticContent>
  16. <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="31.00:00:00" />
  17. </staticContent>
  18. <caching>
  19. <profiles>
  20. <add extension=".css" policy="CacheForTimePeriod" duration="31.00:00:00" location="Any" kernelCachePolicy="DontCache" />
  21. <add extension=".gif" policy="CacheForTimePeriod" duration="31.00:00:00" location="Any" kernelCachePolicy="DontCache" />
  22. <add extension=".html" policy="CacheForTimePeriod" duration="31.00:00:00" location="Any" kernelCachePolicy="DontCache" />
  23. <add extension=".jpg" policy="CacheForTimePeriod" duration="31.00:00:00" location="Any" kernelCachePolicy="DontCache" />
  24. <add extension=".js" policy="CacheForTimePeriod" duration="31.00:00:00" location="Any" kernelCachePolicy="DontCache" />
  25. <add extension=".png" policy="CacheForTimePeriod" duration="31.00:00:00" location="Any" kernelCachePolicy="DontCache" />
  26. <add extension=".svg" policy="CacheForTimePeriod" duration="31.00:00:00" location="Any" kernelCachePolicy="DontCache" />
  27. <add extension=".woff" policy="CacheForTimePeriod" duration="31.00:00:00" location="Any" kernelCachePolicy="DontCache" />
  28. </profiles>
  29. </caching>
  30. <!--<httpProtocol>
  31. <customHeaders>
  32. <add name="Cache-Control" value="public" />
  33. </customHeaders>
  34. </httpProtocol>-->
  35. </system.webServer>
  36. </configuration>