0

最近、PageSpeed でサイトのパフォーマンスをテストしていたところ、ランディング ページに問題があることがわかりました。PageSpeed から次のように言われました。

To speed up page load times for visitors of your site, remove as many landing page redirections as possible, and make any required redirections cacheable if possible.

さらに次のように述べています。

http://www.avnetwork.com/ is a non-cacheable redirect to http://www.avnetwork.com/index

asp.netでリダイレクトをキャッシュする方法を誰か教えてもらえますか

4

1 に答える 1

1

プログラム的には、次のようなものを試すことができます:

Response.Cache.SetExpires(DateTime.Now.AddDays(1));
Response.Cache.SetCacheability(HttpCacheability.Private);
Response.Cache.SetValidUntilExpires(true);
Response.AddHeader("Vary", "User-Agent, Accept-Encoding");
Response.Redirect("http://www.avnetwork.com/index");
于 2013-06-24T21:03:33.577 に答える