Set the string c to the (first) value of the header "cache-control" of the HTTP response res.
use HTTP::Tiny;
$resp = HTTP::Tiny->new->get($url); $cc = $resp->{'headers'}->{'cache-control'};
import "net/http"
c := res.Header.Get("cache-control")
import requests
c = res.headers['cache-control']
require 'open-uri'
c = URI.open(u) {|res| res.meta["cache-control"] }
No security, no password. Other people might choose the same nickname.