Skip to content
Create a gist now

Instantly share code, notes, and snippets.

fs.readFile(this.files[uri], "binary", function(err, content) {
if (err) {
res.sendHeader(404, {
} else {
res.sendHeader(200, {
"Content-Type": mime_type,
"Cache-Control": "public, max-age=300"
res.write(content, "binary");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.