Hey team,
Running SEO audits on a client’s Webflow site (~1,400 pages) and SEMrush is flagging the Consent Pro runtime script on every page as an uncached resource. Verified in DevTools and via curl — the response from api.consentpro.com is missing all cache-related headers.
Response Headers actually returned:
-
Access-Control-Allow-Credentials -
Alt-Svc -
Cf-Ray -
Content-Encoding: zstd -
Content-Type: application/javascript -
Date -
Nel -
Priority -
Report-To -
Server: cloudflare -
Server-Timing -
Vary: Origin
Missing:
-
Cache-Control -
Expires -
ETag -
Last-Modified
Without explicit cache directives, browsers fall back to heuristic caching and most treat the file as effectively uncacheable — repeat visitors re-download the runtime on every pageview. Lighthouse’s “Serve static assets with an efficient cache policy” audit expects a minimum TTL of ~30 days for cacheable subresources, so this fails by default.
The runtime filename already includes a content hash (674d649ddd92d4cd09236107.js), which means it’s effectively immutable per build — config updates generate a new hash. That’s the ideal setup for aggressive caching with zero staleness risk.
Could you set something like Cache-Control: public, max-age=31536000, immutable on the hashed runtime, or at minimum a 30-day TTL to clear the Lighthouse threshold?
Happy to share curl/DevTools screenshots if helpful.
Thanks! @Support-Luis