Search code examples
herokuclojurenoir

CSS loading is slow on heroku hosted site


I am using heroku to host a clojure app using noir. Its the free account with one web dyno.

I have trouble in that the content of the site load, however the CSS doesnt load. On couple of refreshes it will load back properly. However if I was to again clear the browsers cache, and refresh, the same behavior is observed.

Thus all new users have a terrible experience, where only the raw conentent shows up the first time.

Any suggestions would be appreciated.

Thanks, Murtaza


Solution

  • I resolved it by creating a server on EC2 and then serving the static resources using nginx. I am not sure how I would do that on heroku.