【发布时间】:2011-12-07 12:39:07
【问题描述】:
我在 asp.net mvc 3 应用程序中使用 Jquery UI (jquery-ui-1.8.13.)。
在本地(IIS express)中,它总是为每个页面加载 http://localhost:19992/content/redmont/images/ui-icons_f9bd01_256x240.png。 它的缓慢。我猜静态缓存在 IIS express 中不起作用。我在 Content 文件夹中定义的 Web.config:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<staticContent>
<clientCache cacheControlMode="UseExpires" httpExpires="Sun, 01 Dec 2019 00:00:00 GMT" cacheControlCustom="" />
</staticContent>
</system.webServer>
</configuration>
但无济于事。
【问题讨论】:
-
使用localhost时,静态图片不会被缓存。
-
有什么解决办法吗?
标签: jquery asp.net-mvc-3 jquery-ui caching