author avatar

akshay

Thu Aug 30 2018

Rails ActionController provides :stale? and :fresh_when methods which can be use to set HTTP_IF_NONE_MATCH and HTTP_IF_MODIFIED_SINCE headers on the browser. This helps the client to check whether the page has been modified. Response freshness is checked by matching Last-Modified and ETag from the server against the client request's HTTP_IF_MODIFIED_SINCE and HTTP_IF_NONE_MATCHheaders. If it matches, then the server responds with 304 (“not modified”) status code. This will make the client to make use of cached copy of the page - thus saving us from the time spent in generating the response.
author avatar

kamal

Tue Aug 28 2018

rspec has a --bisect flag that helps to chase down order-dependent test failures. It will figure out the minimum number of tests when run in order will produce the test failure.
author avatar

yuva

Fri Aug 10 2018

Docker images for rails will be around 500Mb on Alpine linux. Sounds a lot. Whereas Alpine bases phoenix/elixir images are typically under 100Mb
author avatar

harshwardhan

Tue Aug 07 2018

as of webpack 4.x you can pass function for output.filename which will get the input chunk as it's param and return a string
author avatar

yuva

Mon Aug 06 2018

Use DISABLE_DATABASE_ENVIRONMENT_CHECK env variable to get rid of those crazy migrations check introduced by Rails 5!

Showing 55 to 57 of 73 results