更新时间:2023-11-21 15:39:04
您可以在Global.asax中BeginRequest事件做到这一点。我们这样做的GetVaryByCustomString因为我们使用输出缓存,需要不同的缓存设置为每种语言。
You could do it in the BeginRequest event on Global.asax. We do it on the GetVaryByCustomString since we use output cache and need to set a different cache to each language.