Re:How to Get 100/100 Google Page Speed Score with Middleman...
by gingerlime on Friday October 20, 2017 @02:11PM
(#15517921)
One odd thing I bumped into is Google speed suggestion "complaining" about leveraging browser caching, but it reports Google Analytics as an offender :-/
[ Parent
| on HN ]
Re:How to Get 100/100 Google Page Speed Score with Middleman...
by giobox on Friday October 20, 2017 @05:28PM
(#15519225)
This 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.
Re:How to Get 100/100 Google Page Speed Score with Middleman...
by zepolen on Friday October 20, 2017 @06:01PM
(#15519408)
location /analytics.js {
proxy_pass https://www.google-analytics.com;
expires 1d;
}
Re:How to Get 100/100 Google Page Speed Score with Middleman...
by codedokode on Saturday October 21, 2017 @03:02AM
(#15520992)
You might serve an outdated file and lost a day worth of analytic records as a result.
Re:How to Get 100/100 Google Page Speed Score with Middleman...
by zepolen on Friday October 27, 2017 @02:20AM
(#15566138)
Never seen that happen before - but you have a point assuming google implements a drastic change.