OLD | NEW |
(Empty) | |
| 1 <h1 class="page_title">Hosting</h1> |
| 2 <p> |
| 3 This page tells you how to host <code>.crx</code> files |
| 4 on your own server. |
| 5 If you distribute your extension, app, or theme solely through the |
| 6 <a href="http://chrome.google.com/webstore">Chrome Web Store</a>, |
| 7 you don't need this page. |
| 8 Instead, consult the |
| 9 <a href="http://www.google.com/support/chrome_webstore/">store help</a> and |
| 10 <a href="http://code.google.com/chrome/webstore/index.html">developer documentat
ion</a>. |
| 11 </p> |
| 12 <p> |
| 13 By convention, extensions, |
| 14 installable web apps, and themes are served—whether |
| 15 by the Chrome Web Store or by a custom server—as |
| 16 <code>.crx</code> files. |
| 17 When you upload a ZIP file with the |
| 18 <a href="https://chrome.google.com/webstore/developer/dashboard">Chrome Develope
r Dashboard</a>, |
| 19 the dashboard creates the <code>.crx</code> file for you. |
| 20 </p> |
| 21 <p> |
| 22 If you aren't publishing using the dashboard, |
| 23 you need to create the <code>.crx</code> file yourself, |
| 24 as described in <a href="packaging.html">Packaging</a>. |
| 25 You can also specify |
| 26 <a href="autoupdate.html">autoupdate</a> information to ensure that |
| 27 your users will have the latest copy of the <code>.crx</code> file. |
| 28 </p> |
| 29 <p> |
| 30 A server that hosts <code>.crx</code> files |
| 31 must use appropriate HTTP headers, |
| 32 so that users can install the file |
| 33 by clicking a link to it. |
| 34 </p> |
| 35 <p> |
| 36 Google Chrome considers a file to be installable |
| 37 if <b>either</b> of the following is true: |
| 38 </p> |
| 39 <ul> |
| 40 <li> |
| 41 The file has the content type |
| 42 <code>application/x-chrome-extension</code> |
| 43 </li> |
| 44 <li> |
| 45 The file suffix is <code>.crx</code> |
| 46 and <b>both</b> of the following are true: |
| 47 <ul> |
| 48 <li> |
| 49 The file <b>is not</b> served with |
| 50 the HTTP header <code>X-Content-Type-Options: nosniff</code> |
| 51 </li> |
| 52 <li> |
| 53 The file <b>is</b> served |
| 54 with one of the following content types: |
| 55 <ul> |
| 56 <li> empty string </li> |
| 57 <li> "text/plain" </li> |
| 58 <li> "application/octet-stream" </li> |
| 59 <li> "unknown/unknown" </li> |
| 60 <li> "application/unknown" </li> |
| 61 <li> "*/*" </li> |
| 62 </ul> |
| 63 </li> |
| 64 </ul> |
| 65 </li> |
| 66 </ul> |
| 67 <p> |
| 68 The most common reason for failing to recognize an installable file |
| 69 is that the server sends the header |
| 70 <code>X-Content-Type-Options: no sniff</code>. |
| 71 The second most common reason |
| 72 is that the server sends an unknown content type—one |
| 73 that isn't in the previous list. |
| 74 To fix an HTTP header issue, |
| 75 either change the configuration of the server |
| 76 or try hosting the <code>.crx</code> file at another server. |
| 77 </p> |
OLD | NEW |