Changeset 6166
- Timestamp:
- 02/19/07 01:33:35 (2 years ago)
- Files:
-
- trunk/actionpack/lib/action_controller/response.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/lib/action_controller/response.rb
r6165 r6166 46 46 if body.is_a?(String) && headers['Status'][0..2] == '200' && !body.empty? 47 47 self.headers['Etag'] ||= %("#{Digest::MD5.hexdigest(body)}") 48 headers.delete('Cache-Control') if headers['Cache-Control'] == DEFAULT_HEADERS['Cache-Control'] 48 49 49 50 if request.headers['HTTP_IF_NONE_MATCH'] == headers['Etag']