Add MIME Types for Apple .ipa and .plist extensions#361
Add MIME Types for Apple .ipa and .plist extensions#361danilo-santana-e-silva wants to merge 2 commits intojshttp:masterfrom
Conversation
From: Distribute proprietary in-house apps to Apple devices Ref: https://support.apple.com/en-gb/guide/deployment/depce7cefc4d/1/web#dep30d16db76 "You may need to configure your web server so the manifest file and app file are transmitted correctly. For the server, add the MIME types to the web service’s MIME types settings: application/octet-stream ipa text/xml plist"
| "text/xml": { | ||
| "compressible": true | ||
| "compressible": true, | ||
| "extensions": ["plist"] |
There was a problem hiding this comment.
Hm, actually I am not sure what the impact is of adding this extension here. I think this is incorrect, but would like more eyes here. Maybe I am missing something.
There was a problem hiding this comment.
I don't see any precedent for this though. There are bunches of examples of files with custom extention's which are actually another format (xml, json, etc) that are not doing this. Why would we make a special case for this one?
There was a problem hiding this comment.
Hello! If I may, I'd like to clarify my reasoning.
I've submitted this PR to request the inclusion of two MIME type linkages with their associated file extensions. However, I acknowledge that I'm not fully familiar with the project yet, and it's possible I may have implemented the changes incorrectly.
My intent is simply to publish some Apple iOS files on GitHub Pages, which uses db-mime. For more details on MIME types and their handling on GitHub Pages, you can refer to the official documentation here: GitHub Pages MIME Types.
There was a problem hiding this comment.
Yeah, and based on the docs from apple, it looks like they should have used a suffix and a specific mime type, not call this a text/xml. That would have made it more clear to me what is going on, and you can see plenty of examples of this in our current dataset. For example:
"application/atom+xml": {
"source": "iana",
"compressible": true,
"extensions": ["atom"]
},
It is clear to me that they have documented it this way, and that as long as we prefer the xml extension first that it should be alright to add for the use cases we have in the express project. That said, I am concerned enough with this that I would like to ping in @dougwilson and get his opinion. Maybe I am being overly concerned, but since I cannot find another example like this I want to be extra careful.
There was a problem hiding this comment.
Ah! I was reviewing another PR and I think this might be a similar case to this one:
"application/octet-stream": {
"source": "iana",
"compressible": false,
"extensions": ["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]
},
As you can see here, lots of different extentions listed like you are adding to this one. I had been looking specifically at xml examples (and did a quick search for json when I couldn't find any xml ones) but this seems to me to be the same use case, and so sets the precident I was looking to find.
There was a problem hiding this comment.
I'm actually blocked on this limitation while using GH Pages to serve manifest.plist files for OTA Ad-Hoc Distribution of iOS apps. The iOS user needs to hit a hyperlink using Apple's itms-services URL scheme (eg. itms-services://?action=download-manifest&url=https://myapp.com/manifest.plist).
Instead of an application/xml or text/xml content-type in the response, I'm seeing 'application/octet-stream' returned when this URL is visited, which makes the OTA Ad-Hoc installation fail.
Apple OTA(web) Ad-Hoc Distribution: https://support.apple.com/en-gu/guide/deployment/depce7cefc4d/web
|
Hey @danilo-santana-e-silva, could you please resolve the conflicts? |
UlisesGascon
left a comment
There was a problem hiding this comment.
LGTM! I solved the conflict... @wesleytodd let me know what you think

From: Distribute proprietary in-house apps to Apple devices
Ref: https://support.apple.com/en-gb/guide/deployment/depce7cefc4d/1/web#dep30d16db76
"You may need to configure your web server so the manifest file and app file are transmitted correctly. For the server, add the MIME types to the web service’s MIME types settings:
application/octet-stream ipa
text/xml plist"