DEV Community

Discussion on: How to develop a website with 100% page speed? A step-by-step guide

Collapse
 
sroehrl profile image
neoan
  1. Caching of static content can be influenced with Nginx or Apache pretty easily, and CDNs usually offer easy setup as well. It's hard to provide a general answer without knowing your setup.

  2. You can't protect API keys in static content. You will have to work with CORS and, if necessary, proxy your calls through a backend. Often oAuth is possible to circumnavigate this issue, but that depends on what you are doing.

That said, I am running a AWS EC2 micro instance with multiple domains running multiple neoan3 back-ends. Running optimal code can do a lot for you. Check out the Google page speed link here to see for yourself.