#assets
2 Einzeiler mit diesem Stichwort.
Alle Einzeiler mit Tag assets
Cache-Control aller CSS-, JS- und Bilddateien einer Seite prüfen
$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
Gesamtgröße einer Seite mit allen Assets grob ermitteln
$wget -q -p -H -nd -e robots=off -P /tmp/seitengewicht https://example.com/; du -sh /tmp/seitengewicht; ls -lhS /tmp/seitengewicht | head -15