A common option to put a caching HTTP reverse proxy in front of node and
let that handle all of the caching logic. Varnish Cache and NGINX Content
Caching are popular options.

-- Daniel R. <[email protected]> [http://danielr.neophi.com/]

On Fri, Mar 27, 2015 at 9:15 AM, Kevin Ingwersen (Ingwie Phoenix) <
[email protected]> wrote:

> Hey everyone!
>
> My current project is based on using Express - or connect, still trying
> out which is better… - and serves a good amount of static files that are
> likely to not change in a long time during production.
>
> But the current cache-hell that I have is pretty … ugly. I mean, just look
> at this:
>
> http://git.ingwie.me/ingwie/bird3/blob/master/lib/request_handler.js#L59
>
> Isn’t there a MUCH easier solution than the way I chose? I want to be able
> to cache all the served images, css, js and oj scripts in the browser…but
> how can I do it „right“? This just looks like a big mess to me really...
>
> --
> Job board: http://jobs.nodejs.org/
> New group rules:
> https://gist.github.com/othiym23/9886289#file-moderation-policy-md
> Old group rules:
> 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 unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/nodejs/F9373170-E98B-4534-B954-340C095C215F%40googlemail.com
> <https://groups.google.com/d/msgid/nodejs/F9373170-E98B-4534-B954-340C095C215F%40googlemail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/CAETDeSBJropw0GUNB1vT%2BT69ax7f4SfTiomhDOvO1iJwUB%3DQew%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to