# File lib/fog/hp/models/storage/directory.rb, line 107
        def cdn_public_url
          requires :key
          @cdn_public_url ||= begin
            # return the CDN public url from the appropriate uri from the header
            begin response = service.cdn.head_container(key)
              if response.headers['X-Cdn-Enabled'] == 'True'
                if service.hp_cdn_ssl == true
                  response.headers.fetch('X-Cdn-Ssl-Uri', nil)
                else
                  response.headers.fetch('X-Cdn-Uri', nil)
                end
              end
            rescue Fog::CDN::HP::NotFound => err
              nil
            end
          end
        end