あけおめことよろ 昨年ストック頂いた皆様、投稿を読んでくださった皆様、 本年もよろしくお願いします。 背景 Chromebookを買ったので、オフラインアプリの可能性を試そうと Application Cacheを思い出し、node.jsのexpressを使おうとしたら、 .appcacheファイルのMIMEタイプを追加する必要に迫られた。 staticなファイルのMIMEタイプを追加するには var express = require('express'); express.static.mime.define({'text/cache-manifest': ['appcache']}); Link javascript - Express: Setting content-type based on path/file? - Stack Overflow あとがき 実はこれ書いた後、m