Current time: 02-25-2021, 12:34 PM Hello There, Guest! (LoginRegister)

Post Reply 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Questions on metrics returned
12-31-2015, 05:29 AM
Post: #1
Questions on metrics returned
  • I'm looking at the metrics returned from the REST API in a JSON response. I'm noticing the sometimes a metric (such as score_cache) is "0", while other times it's "-1". In both cases the item could be cached.
  • Every item under the "requests" array gives a "score_combine" of -1, but the overall score is 100. On this particular site, we load over 20 JS files on each page load, so we should fail that test pretty thoroughly!
  • What is score_cookies? I would have thought it was similar to score_cdn (i.e. keeping static objects on a cookie-less domain).
  • What is image_total and why is it 0?
  • I know I can smush some of my images smaller, but image_savings is also 0.
Find all posts by this user
Quote this message in a reply
01-06-2016, 02:37 AM
Post: #2
RE: Questions on metrics returned
-1 generally means N/A (for caching that means the resource was probably marked as no-cache) while 0 means it should have been cacheable but failed.

As far as combine goes, I'm not sure that I'm calculating that anymore and it should be removed from the results (I'll look into it). There's a lot of subtlety about head resources vs late-body resources and HTTP/2 that make resource combining a more complicated topic.

- score_cookies is also somewhat deprecated but it checks to see if cookies were sent up for static resources. It's from the days where it was advisable to serve static resources from a separate cookie-less domain.

The image checks (total and savings) are only checking JPEG images for lossy compression right now so if you have PNG images that could be better smushed it isn't picking them up.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 

Forum Jump:

User(s) browsing this thread: 1 Guest(s)