Why are my basic Heroku apps taking two seconds to load?

后端 未结 5 1150
耶瑟儿~
耶瑟儿~ 2020-11-30 17:50

I created two very simple Heroku apps to test out the service, but it\'s often taking several seconds to load the page when I first visit them:

  • Cropify - Basic
5条回答
  •  有刺的猬
    2020-11-30 18:38

    You might also want to investigate the caching options you have on Heroku w/ Varnish and Memcached. These are persisted independent of the dynos.

    For example, if you have an unchanging homepage, you can cache that for extended periods in Varnish by adding Cache-Control headers to the response. Then your users won't experience the load hit until they want to "do something" rather than when they arrive.

提交回复
热议问题