#!/usr/bin/env bash
# Pass 13: verification — plain homepage, cache headers after rebuild
DOMAINS="studiosoft.id www.yasmanatura.co.id otomasibisnispintar.com www.tslaw.id rsia.kendangsari.com www.theskincodeclinic.com apotekpamekasan.com www.everybeofficial.com www.dmark.id www.surabaya-skincentre.com www.abimataconsultant.com"
echo "=== PASS13 VERIFY $(date -u '+%Y-%m-%d %H:%M:%S UTC') ==="
for D in $DOMAINS; do
  HDR=$(mktemp)
  OUT=$(curl -4 --http1.1 -sL -o /dev/null --connect-timeout 6 --max-time 25 \
        -D "$HDR" -w '%{http_code} t=%{time_total}s size=%{size_download}' \
        "https://${D}/" 2>/dev/null)
  CF=$(grep -i '^cf-cache-status' "$HDR" | tr -d '\r' | head -1)
  AGE=$(grep -i '^age:' "$HDR" | tr -d '\r' | head -1)
  echo "${D} | ${OUT} | ${CF:-no-cf-hdr} | ${AGE:-no-age}"
  rm -f "$HDR"
done
echo "=== DONE $(date -u '+%H:%M:%S UTC') ==="
