RailsCasts Pro episodes are now free!

Learn more or hide this

Maximilian Tagher's Profile

GitHub User: MaxGabriel

Site: maxgabriel.github.io

Comments by Maximilian Tagher


Just a warning to anyone using page caching for more than HTML pages (e.g. JSON responses), the Rails will default to saving the cached file with the HTML extension, so requests hitting the cache will get the wrong format. To get around this, just append the format you're using in your request: curl railsapp.com/method.json. Rails will then save the file with the correct extension.