This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.
We’re working on putting our current product behind Amazon Cloudfront. With Cloudfront, if you don’t set a Cache-Control header with an expiry time, Cloudfront will cache the content for 24 hours by default. Instead of littering all my controller actions with cache settings, I wanted to add a default value then be able to override on and action by action basis. First, here’s how you actually set a…
Read on /2013/10/setting-default-http-cache-headers-in-rails/ ↗
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.