Asp.net mvc 如何在Mono Apache MVC应用程序中提供静态内容

Asp.net mvc 如何在Mono Apache MVC应用程序中提供静态内容,asp.net-mvc,apache,jquery-ui,jqgrid,mono,Asp.net Mvc,Apache,Jquery Ui,Jqgrid,Mono,ASP.NET MVC应用程序页包含订单标题和订单行。 使用了jquery、jqgrid、jQueruUI和一些jQueruUI插件。 所有js文件都编译为单个缩小文件default.js 资源从ASP.NET标准脚本、内容和主题子目录加载 在ASP.NETMVC应用程序树中 在Chrome浏览器中运行审计会提出建议,使静态资源可缓存且无Cookie 对于第一个审计问题,Mono似乎禁用了缓存控制。响应头如下所示: Cache-Control:private Connection:Keep-Al

ASP.NET MVC应用程序页包含订单标题和订单行。 使用了jquery、jqgrid、jQueruUI和一些jQueruUI插件。 所有js文件都编译为单个缩小文件default.js

资源从ASP.NET标准脚本、内容和主题子目录加载 在ASP.NETMVC应用程序树中

在Chrome浏览器中运行审计会提出建议,使静态资源可缓存且无Cookie

对于第一个审计问题,Mono似乎禁用了缓存控制。响应头如下所示:

Cache-Control:private
Connection:Keep-Alive
Date:Sun, 07 Oct 2012 19:38:15 GMT
Keep-Alive:timeout=15, max=97
Server:Apache
对于第二个问题,浏览器似乎为css文件和图像发送cookies:

Connection:keep-alive
Cookie:ASP.NET_SessionId=8E6FF8F8BAE86246BF49C1C5; .MyAuth=fDmFg9sG5ZfQBCwcgOpdrgSH/OcY5+xVyL9XJko1SwObAZcMQbZyNYz4JZ7fTZLBNVhjw23LuKrBiYqM5G0lccXUxkK/S37rToQfmBR4JfmlVTBT; .MyRoles=
如何解决这些问题? 最好保持ASP.NET应用程序目录结构,并为应用程序子目录中的所有文件提供服务

Chrome审计结果如下:

Leverage browser caching (16)
The following resources are explicitly non-cacheable. Consider making them cacheable if possible:

Detail
jquery-ui-1.8.12.custom.css
ui.jqgrid.css
Site.css
default.js
ui-bg_inset-hard_100_fcfdfd_1x100.png
ui-bg_flat_55_fbec88_40x100.png
ui-bg_glass_95_fef1ec_1x400.png
ui-bg_gloss-wave_55_5c9ccc_500x100.png
DokG.png
ui-bg_inset-hard_100_f5f8f9_1x100.png
ui-bg_glass_85_dfeffc_1x400.png
ui-icons_6da8d5_256x240.png
ui-bg_flat_0_aaaaaa_40x100.png
ui-icons_d8e7f3_256x240.png
ui-icons_469bdd_256x240.png

Serve static content from a cookieless domain (14)
2.53KB of cookies were sent with the following static resources. Serve these static resources from a domain that does not set cookies:

jquery-ui-1.8.12.custom.css
ui.jqgrid.css
Site.css
ui-bg_inset-hard_100_fcfdfd_1x100.png
ui-bg_flat_55_fbec88_40x100.png
ui-bg_glass_95_fef1ec_1x400.png
ui-bg_gloss-wave_55_5c9ccc_500x100.png
DokG.png
ui-bg_inset-hard_100_f5f8f9_1x100.png
ui-bg_glass_85_dfeffc_1x400.png
ui-icons_6da8d5_256x240.png
ui-bg_flat_0_aaaaaa_40x100.png
ui-icons_d8e7f3_256x240.png
ui-icons_469bdd_256x240.png