sitespeedio / coach

Clear Eyes. Full Hearts. Can’t Lose.
MIT License
1.21k stars 64 forks source link

WIP: Adding a check for detecting incorrectly set last modified time headers #112

Closed beenanner closed 4 years ago

beenanner commented 8 years ago

Still in progress as this check relies on https://github.com/sitespeedio/pagexray/pull/16 as returning -1 will trigger failures on the check for any request that doesn't have a last modified time header.

http://www.cnet.com/ has a request that has a last modified time header set in the future this is incorrect against the spec and should be flagged as needing to be fixed.

Also this test should probably go into a bestpractice folder instead of performance, but https://github.com/sitespeedio/coach/blob/master/lib/index.js#L69 will need to be modified first to include multiple directories.

Also a unit test is needed before merging.

soulgalore commented 8 years ago

This is the first one with weight 0 :) Not sure it will be picked up then, because we have checks for advice with the score < 100. I think we should create a bestpractices category for HAR also, then we can have a weight and it will be picked up and shown in the bestpractice section? I think it will not work out of the box, could be we need to add something more to just get that category up and running, let me know if you want me to help you with that!

Thanks for advice, it's super cool!

beenanner commented 8 years ago

Sounds good @soulgalore it does look like we will need to tweak getHarAdvice method as it only takes in account the performance folder.