2009-06-01 71 views
1

如果我在使用asp.net页面替换的控制,并且还添加以下指令页面:替代控制和缓存位置

<%@ OutputCache Duration="7200" VaryByParam="None" Location="Any" %> 

请问位置属性被忽略,因为使用页面上的替代控制仅在服务器上使页面可缓存?

回答

2

是的,它会被忽略。 Substition.Render通过RenderMarkup调用HttpResponse.WriteSubstitution来调用HttpCachePolicy.SetCacheability(HttpCacheability.Server)。