node.js - Going in production: how to serve my static assets without NodeJS? -


in development used have node server serve static files (img, pdf, etc.) production getting closer, feel inefficient , puts unneeded load on node.
right way have assets served different server? there ready-made solution? should use "good old" apache-php stack? should know ports forwarding , stuff that?

thanks lot!

i've seen done several ways.

  1. use nginx serve static assets. faster apache static assets.
  2. use s3 , cloudfront serve static assets. you'll upload assets s3 , enable cloudfront cdn.
  3. use cloudflare, i'm less experienced method can't tell accept handle cdn , believe caching.

hope helps.


Comments

Popular posts from this blog

java - JavaFX 2 slider labelFormatter not being used -

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -