ga-lite icon indicating copy to clipboard operation
ga-lite copied to clipboard

YSlow hit

Open danyj opened this issue 7 years ago • 1 comments

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

danyj avatar Jul 01 '18 11:07 danyj

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:

  • YSlow has whitelisted/blacklisted the official Google Analytics plugin/request, and leaves it out of the report
  • Official Google Analytics somehow detects that it's running in YSlow and does not run analytics call
  • There's a correct cache header in the endpoint that official Google Analytics uses, but the library breaks cache with some other mean (e.g. url param)

jehna avatar Jul 01 '18 17:07 jehna