Setting Content Type for Static Files


I have my site hosted using Ghost on Azure. I’m trying to host a static file ( so that my App can use app links.

I have the folder and file in the root of my theme folder and if you navigate to it it is served successfully. The only issue is that the content type needs to be application./json but it gets returned as application/octet-stream.

This file, note has no extension, needs to be in the location and with this name.

I have tried editing the web.config file on nmy site by adding

      <!-- required for apple-app-site-association: -->
    	<remove fileExtension="." />
      	<mimeMap fileExtension="." mimeType="application/pkcs7-mime" />

but this seems to be ignored.

Is there any way of setting the content type of this one file?

THanks Ash.

  • What’s your URL?
  • What version of Ghost are you using? 2.03
  • What configuration? Runnign on Azure
  • What browser?

You might be able to do this with Dynamic Routing:

closed #3

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.