question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Third-party Google Assets don't follow their own audit rules, causing report errors

See original GitHub issue

When I run lighthouse reports, my only errors and warnings come from assets delivered by the creator of lighthouse: Google.

Specifically, this warning/error shows up.

Uses inefficient cache policy on static assets

All the items in this report come from

  • securepubads.g.doubleclick.net (google property).
  • googletagmanager.com (google property)
  • pagead2.googlesyndication.com (google property)
  • www.google-analytics.com (google property)
  • tpc.googlesyndication.com (google property)

Why does Google serve assets that fail to follow their own recommendations as based on lighthouse? If they recommend static assets be sent with proper caching headers, why doesn’t google follow through with that? Some of their assets have a ttl of 0 or 15m!

If they aren’t going to follow their own recommendations, then it seems that lighthouse should exclude their own domains from this analysis, since it creates a bunch of false positives which I can do nothing about.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
apotekcommented, Sep 28, 2018

Yes, allowing us to filter them out would be helpful. I’m wondering, though, if there is a way to open an issue with Google regarding how they cache their JS. I’ve never understood why some of their libraries are set to ttl 0 or 15 minutes, etc… I doubt they are releasing code updates every fifteen minutes 😃. It just seems since lighthouse was affiliated with Google development, that maybe they could nudge Google to observe its own rules and recommendations.

Thank you for your response @patrickhulce . I suppose filtering will not affect the score, which will remain affected by Google’s caching errors, but at least we could then reduce noise during our weekly testing.

0reactions
paulirishcommented, Dec 17, 2018

Let’s add private to our list. And land the 3P filter.

Read more comments on GitHub >

github_iconTop Results From Across the Web

OAuth API verification FAQs - Google Cloud Platform Console ...
All apps that access Google APIs must verify that they accurately represent their identity and intent as specified by Google's API Services User ......
Read more >
Compliance Audits: What You Need to Know to Avoid a Penalty
A compliance audit is a formal review of an organization's procedures and operations to make sure they're following all applicable rules, ...
Read more >
Accounting's Big Lie — and How to Fix It - POGO.org
If the road to audit reform is otherwise blocked, there's one simple step the government could take: Stop lying. Part 1 of our...
Read more >
Errors and Fraud in the Supplemental Nutrition Assistance ...
SNAP fraud is relatively rare, according to available data and reports. • There is no single ... still must follow SNAP rules and...
Read more >
Final Rule: Revision of the Commission's Auditor ... - SEC.gov
A separate 1994 report of the Advisory Panel on Auditor Independence noted the ... First, the audit client must use its own actuaries...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found