title: How to serve views from the Cloudfront CDN
body: <p>The only reason I am using cloudfront is to limit my website to United States users. I have already whitelisted the US as a country in the cloudfront settings. I would like the whole website to not be shown outside of US; ideally some 303 redirect or a message that this website is not available in your country would be displayed to other users. </p>
  
  <p>Both images below show on my website. How do I make the views be served from the cloudfront as well? Maybe I am thinking of this wrong, but I am not sure how to restrict the whole website as opposed to just the images. </p>
  
  <pre><code>&lt;p&gt;&lt;img src="http://d2nprsvqt0000.cloudfront.net/img/demo.png" alt="my test image"&gt;
  &lt;p&gt;&lt;img src="/img/demo.png" alt="my demo"&gt;
  
  app.use(express.static(path.join(__dirname, '/public')));
  
  router.get('/about', function(req, res, next) {
      res.render('about');
  });
  </code></pre>