#assets
2 one-liners with this tag.
All one-liners tagged assets
Check Cache-Control of all CSS, JS and image files on a page
$curl -s https://example.com/ | grep -oE '(src|href)="[^"]+\.(css|js|woff2?|jpe?g|png|gif|webp|avif|svg)(\?[^"]*)?"' | cut -d'"' -f2 | sed -E 's#^//#https://#; s#^/#https://example.com/#' | grep '^http' | sort -u | while read -r a; do printf '%-45s %s\n' "$(curl -sI "$a" | grep -i '^cache-control:' | tr -d '\r')" "$a"; done
Roughly measure the total size of a page with all assets
$wget -q -p -H -nd -e robots=off -P /tmp/page-weight https://example.com/; du -sh /tmp/page-weight; ls -lhS /tmp/page-weight | head -15