title: Easy way to identify page requests in Sitecore
body: <p>I'd like to identify requests for page in Sitecore from code running toward the end of the httpRequestBegin pipeline.</p>
  
  <p>The reason is <a href="https://stackoverflow.com/questions/16577260/browser-upgrade-page-redirect-vs-privacy-mode">I want to redirect to an old browser page</a> but I don't want the redirect to happen for media item requests or static content requests.</p>
  
  <p>Here's what I was thinking of doing:</p>
  
  <pre><code>private static bool IsPageRequest(HttpRequestArgs args)
  {
      return Context.Item != null &amp;&amp;
             Context.Item.Axes.IsDescendantOf(args.GetItem(Context.Site.RootPath));
  }
  </code></pre>
  
  <p>But it looks suboptimal to me. Is there a more performant way to check this?</p>