Try this code:
var express = require('express'), app = express.createServer(); app.get("/offline.manifest", function(req, res){ res.header("Content-Type", "text/cache-manifest"); res.end("CACHE MANIFEST"); }); app.listen(8561);
(I assume you are using the latest version of express, 2.0.0)
UPDATE: I just quickly tested using Firefox 3.6.x and Live HTTP Headers. This is the output of the addons:
HTTP/1.1 200 OK X-Powered-By: Express Content-Type: text/cache-manifest Connection: keep-alive Transfer-Encoding: chunked
Before you try, make sure you clear the cache.
schaermu
source share