FAQ
You can do this with Lactate

https://github.com/Weltschmerz/Lactate
On Friday, August 3, 2012 9:46:37 AM UTC-5, Felix E. Klee wrote:

What is a good module to serve some static (JavaScript) files (including
caching and compression)?

Desired mapping of files to URLs:

scripts/*.js -> http://example.com/scripts/*.js (only for development)
xyz.js -> http://example.com/xyz.js
app.js -> not served (of course)
package.json -> not served (of course)
...

That's it. There is no public directory in my app.

What I already looked at:

* node-static: only allows specification of a public directory which is
mapped to the root of <http://example.com/>. As you can see above,
this is not what I want.

* connect: will not do caching anymore ("connect.staticCache() is
deprecated and will be removed in 3.0 use varnish or similar reverse
proxy caches")

By the way, I plan to deploy to Nodejitsu. Does anyone know whether they
do automatic caching?
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 4 of 18 | next ›
Discussion Overview
groupnodejs @
categoriesnodejs
postedAug 3, '12 at 2:48p
activeAug 6, '12 at 5:11p
posts18
users7
websitenodejs.org
irc#node.js

People

Translate

site design / logo © 2022 Grokbase