Static assets with versioned names should not be downloaded again on every visit.
location ~* \.(css|js|woff2|png|jpg|svg)$ {
expires 30d;
}
expires 30d sends an Expires header and Cache-Control: max-age=2592000. Use it only for files whose name changes when the content changes, such as app.3f9c.js, because visitors keep the old copy for the whole month otherwise. expires epoch and expires -1 switch caching off. Check the result with curl -sI and read the Cache-Control line.
Further reading: ngx_http_headers_module: expires
Going deeper: 🛜 Guide: AdGuard Home + Tailscale (Secure Split-Horizon DNS)