# File lib/chef/provider/remote_file/http.rb, line 46 def conditional_get_headers cache_control_headers = {} if last_modified = cache_control_data.mtime and want_mtime_cache_control? cache_control_headers["if-modified-since"] = last_modified end if etag = cache_control_data.etag and want_etag_cache_control? cache_control_headers["if-none-match"] = etag end Chef::Log.debug("Cache control headers: #{cache_control_headers.inspect}") cache_control_headers end
Generated with the Darkfish Rdoc Generator 2.