jehna / ga-lite

Small, cacheable and open version of Google Analytics JS client
MIT License
640 stars 55 forks source link

YSlow hit #62

Open danyj opened 6 years ago

danyj commented 6 years ago

Original GA is reported as Leverage browser caching on both GT Metrics and pingdom , with ga-lite the hit is moved from PageSpeed to YSlow so you are getting hit either way

http://i.prntscr.com/6EctdfeoQnGYtfyyOejfcw.png

Scores with Google Analytics

Speed: 98 YSlow: 86

with ga-lite

Speed: 99 YSlow: 84

jehna commented 6 years ago

Allowing caching an analytics response does not make much sense, ad that request should always be guaranteed to hit origin.

Interestingly the official google analytics seems to somehow get around this. Listing some potential theories how this can happen: