What is Gzip Compression? Gzip compression is a quick and easy way to speed up the loading times of your web application. This can be done by compressing the static assets like stylesheets, javascripts, etc before serving them to the web browser. This can save a lot of bandwidth and as well as make your…
Continue ReadingTag: assets
Deploying fails on heroku? here’s what you can do to fix
Use heroku logs Heroku logs often provide in-depth useful information for debugging your rails apps, it shows us the exact block of code where the bug exists, sometimes it can be because of a typo or a problem with gem versions or something else. We can also use heroku logs with –tail to continuously get…
Continue ReadingAdding custom error pages to our rails app
Default Error Pages Rails already comes with its own error pages which is okay but too simple, but we can add our own custom error pages, just to make it look a lot nicer, here’s a quick and easy way on how you can do that. Popular Examples The default error pages that comes with…
Continue ReadingServing Static Assets from an external server or CDN
The Asset Pipeline The rails asset pipeline is the default way to serve assets to your rails apps, but it’s not the best and not the only way. By default rails will use the asset pipeline to serve static assets, its a quick and easy way to serve static assets, but it degrades the performance…
Continue Reading