How to implement CACHING IN RAILS 3

Why we need to implement? Caching is extremely useful to implement for web applications. When an application is getting a lot of requests and New Relic detects a strain on your instances, it’s probably time to look into caching. Increase performance of the web application. Serving static content to a visitor rather than something generated […]

Serving gzipped assets from Rails application

One good practice for your assets is to gzip them and serve them compressed. To do this in your Rails app, you can make use of the Rack::Deflater middleware. Make sure that you use it in your middleware stack, before the middleware that does the handling of static assets. For example, if you’re using ActionDispatch::Static […]