3 ms·
One odd thing I bumped into is Google speed suggestion "complaining" about leveraging browser caching, but it reports Google Analytics as an offender :-/ h
by gingerlime 9y ago
One odd thing I bumped into is Google speed suggestion "complaining" about leveraging browser caching, but it reports Google Analytics as an offender :-/
https://www.google-analytics.com/plugins/ua/linkid.js (60 minutes)
https://www.google-analytics.com/analytics.js (2 hours)
- elliotec 9y agoI address that at the bottom of this post. If they're gonna contradict themselves than we might as well circumvent that.
- alt2501 9y agoNice 'diesel gate' style hack.
- giobox 9y agoThis has been the case for what feels like forever now, and Google have on several occasions clarified they have no intention of changing the cache time on these files to "fix" the Page Speed score result for sites that use Google Analytics. I personally find that most of the workarounds for this are usually more technically offensive than living with a marginally lower score on this often somewhat arbitrary test.
- zepolen 9y agolocation /analytics.js { proxy_pass https://www.google-analytics.com; expires 1d; }
- codedokode 9y agoYou might serve an outdated file and lost a day worth of analytic records as a result.
- zepolen 9y agoNever seen that happen before - but you have a point assuming google implements a drastic change.