cthos / phantom-jetstream

Phantomjs script for logging of page resource timing.
6 stars 1 forks source link

Add a mechanism for logging arbitrary headers #27

Open cthos opened 9 years ago

cthos commented 9 years ago

The X-Cache section is actually pretty useless on its own. What would be better is if I could do something like:

report.track('X-Drupal-Cache', function (resource) { return val === 'MISS'; });`

Where the first parameter is a header, and the second is a callback which allows you to check against an arbitrary condition.

cthos commented 9 years ago

This would be more appropriate for the metric tracker, as well. I've added a report section in #34