Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/71.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
jqueryui图像加载性能差_Jquery_Asp.net Mvc 3_Jquery Ui_Caching - Fatal编程技术网

jqueryui图像加载性能差

jqueryui图像加载性能差,jquery,asp.net-mvc-3,jquery-ui,caching,Jquery,Asp.net Mvc 3,Jquery Ui,Caching,我正在使用jQueryUIjQuery-UI-1.8.13。在asp.NETMVC3应用程序中 在本地IIS express中,它始终加载http://localhost:19992/content/redmont/images/ui-图标_f9bd01_256x240.png,用于每个页面。 很慢。我猜静态缓存在IIS express中不起作用。我在内容文件夹中定义的Web.config: <?xml version="1.0" encoding="UTF-8"?> <con

我正在使用jQueryUIjQuery-UI-1.8.13。在asp.NETMVC3应用程序中

在本地IIS express中,它始终加载http://localhost:19992/content/redmont/images/ui-图标_f9bd01_256x240.png,用于每个页面。 很慢。我猜静态缓存在IIS express中不起作用。我在内容文件夹中定义的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>

但是没有用。

当您在本地主机下的IIS Express上运行站点时,所有缓存都被禁用。这是一件好事,因为您很可能仍在构建/调试站点。在那个阶段,缓存javascrip和css等静态内容可能会非常混乱

完成站点构建后,可以将其上载到IIS,静态缓存应该可以正常工作


由于您对性能感兴趣,您可以使用其他一些,但它们也不能与localhost一起使用。

当您使用localhost时,静态映像将不会被缓存。是否有解决方法?