1. Home
  2. Computing & Technology
  3. Ruby
photo of Amanda & Michael Morin
Amanda and Michael's Ruby Blog

By Amanda & Michael Morin, About.com Guides to Ruby

New in Rails 2.2: ETags

Tuesday October 28, 2008

There are a number of new features in the recently-released Rails 2.2, including ETags. HTTP ETags (or "entity tags") are a way of uniquely identifying content sent by your web server. Rails 2.2 adds specific support for ETags and checking the last modified date to help you save a little bandwidth.

It works like this: clients save the ETag when they request a page and, if they ever request the page again, they send the ETag along with it. The server can look at the ETag to determine if the content has changed since the client last requested it. If it hasn't changed, the server can send an empty HTTP body, saving quite a bit of bandwidth. For pages that users refresh often, such as the main page of a frequently visited Website, this can be a big bonus.

Comments

No comments yet. Leave a Comment

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Discuss
Community Forum
Explore Ruby
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Ruby

©2009 About.com, a part of The New York Times Company.

All rights reserved.