Ewl » Canonical The canonical version of EWL Read More
Clone URL:  
Pushed to 3 repositories · View In Graph Contained in tip and canonical

Disabled search-engine indexing for non-live installations.

Changeset 4232ea99d08f

Parent 187bd3fbffce

by Profile picture of William GrossWilliam Gross

Changes to one file · Browse files at 4232ea99d08f Showing diff from parent 187bd3fbffce Diff from another changeset...

 
1030
1031
1032
1033
 
 
 
 
1034
1035
1036
 
1030
1031
1032
 
1033
1034
1035
1036
1037
1038
1039
@@ -1030,7 +1030,10 @@
  // Direct response object modifications. These should happen once per page view; they are not needed in redirect responses.     FormsAuthStatics.UpdateFormsAuthCookieIfNecessary(); - if( InfoAsBaseType.AllowsSearchEngineIndexing == false ) + + if( !ConfigurationStatics.IsLiveInstallation ) + Response.AppendHeader( "X-Robots-Tag", "noindex, nofollow" ); + else if( InfoAsBaseType.AllowsSearchEngineIndexing == false )   Response.AppendHeader( "X-Robots-Tag", "noindex" );     // Without this header, certain sites could be forced into compatibility mode due to the Compatibility View Blacklist maintained by Microsoft.