title: mapbox files pbf blocked IIS server
body: <p>PBF (street map mapbox vector files) files are not allowed to be served /downloaded from IIS (2008 R8) and I need them to be.</p>
  
  <p>The background</p>
  
  <p>PBFs are served OK when using the react development server </p>
  
  <pre><code>//Startup.cs
  if (env.IsDevelopment())
  {
     spa.UseReactDevelopmentServer(npmScript: "start");
  }
  </code></pre>
  
  <p>These files will appear on the map correctly. </p>
  
  <p>However when deploying the .NET Core app to IIS with </p>
  
  <blockquote>
    <p>ASPNETCORE_ENVIRONMENT = production </p>
  </blockquote>
  
  <p>set. These files are essentially blocked.</p>
  
  <p>I have added the MIME type</p>
  
  <p><a href="https://i.stack.imgur.com/QxVHN.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QxVHN.jpg" alt="enter image description here"></a></p>
  
  <p>I believe this is an IIS thing as like I say, on the react server in development they load fine.</p>
  
  <p>Any clues as of why they still won't download?</p>
  
  <p>Thanks </p>